pub struct Route { /* private fields */ }Expand description
Positions over time: a list of region entries in tick order.
Implementations§
Source§impl Route
impl Route
Sourcepub fn from_samples(samples: Vec<RouteSample>, end_tick: u32) -> Self
pub fn from_samples(samples: Vec<RouteSample>, end_tick: u32) -> Self
A route from explicit samples (sorted by tick) ending at end_tick.
Sourcepub fn walk(graph: &RegionGraph, path: &[u32], units_per_second: u32) -> Self
pub fn walk(graph: &RegionGraph, path: &[u32], units_per_second: u32) -> Self
Walk path (consecutive regions must be neighbours) at
units_per_second, entering each region when the previous edge is
covered; the route ends one second after the last entry.
Sourcepub fn samples(&self) -> &[RouteSample]
pub fn samples(&self) -> &[RouteSample]
The samples.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Route
impl RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl UnsafeUnpin for Route
impl UnwindSafe for Route
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)