pub struct Extent {
pub start: i64,
pub end: i64,
}Expand description
Samples [start, end) of the one grid every node is read on, whose sample 0 is t = 0.
Fields§
§start: i64§end: i64Implementations§
Source§impl Extent
impl Extent
Sourcepub const EVERYWHERE: Extent
pub const EVERYWHERE: Extent
Every sample of the grid: i64::MIN and i64::MAX stand for no edge at all.
pub const NOWHERE: Extent
pub fn new(start: i64, end: i64) -> Extent
pub fn from(start: i64) -> Extent
pub fn is_bounded(&self) -> bool
pub fn contains(&self, n: i64) -> bool
pub fn intersect(self, other: Extent) -> Extent
pub fn hull(self, other: Extent) -> Extent
Sourcepub fn shifted(self, by: i64) -> Extent
pub fn shifted(self, by: i64) -> Extent
Every sample moved by later; an unbounded edge stays unbounded.
pub fn secs(rate: u32, start_secs: f64, end_secs: f64) -> Extent
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn start_secs(&self, rate: u32) -> f64
pub fn span_secs(&self, rate: u32) -> f64
Trait Implementations§
impl Copy for Extent
impl Eq for Extent
impl StructuralPartialEq for Extent
Auto Trait Implementations§
impl Freeze for Extent
impl RefUnwindSafe for Extent
impl Send for Extent
impl Sync for Extent
impl Unpin for Extent
impl UnsafeUnpin for Extent
impl UnwindSafe for Extent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more