pub struct FrameTimestampIndex { /* private fields */ }Implementations§
Source§impl FrameTimestampIndex
impl FrameTimestampIndex
pub fn new() -> FrameTimestampIndex
pub fn from_timed_frames<I>(frames: I) -> FrameTimestampIndex
pub fn insert_frame( &mut self, frame: &Frame, timestamp: Timestamp, ) -> Option<Timestamp>
pub fn insert_frame_id( &mut self, frame_id: u64, timestamp: Timestamp, ) -> Option<Timestamp>
pub fn timestamp_for_frame(&self, frame: &Frame) -> Option<Timestamp>
pub fn timestamp_for_frame_id(&self, frame_id: u64) -> Option<Timestamp>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> impl Iterator<Item = (u64, Timestamp)>
Trait Implementations§
Source§impl Clone for FrameTimestampIndex
impl Clone for FrameTimestampIndex
Source§fn clone(&self) -> FrameTimestampIndex
fn clone(&self) -> FrameTimestampIndex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrameTimestampIndex
impl Debug for FrameTimestampIndex
Source§impl Default for FrameTimestampIndex
impl Default for FrameTimestampIndex
Source§fn default() -> FrameTimestampIndex
fn default() -> FrameTimestampIndex
Returns the “default value” for a type. Read more
impl Eq for FrameTimestampIndex
Source§impl PartialEq for FrameTimestampIndex
impl PartialEq for FrameTimestampIndex
impl StructuralPartialEq for FrameTimestampIndex
Auto Trait Implementations§
impl Forget for FrameTimestampIndex
impl Freeze for FrameTimestampIndex
impl Move for FrameTimestampIndex
impl RefUnwindSafe for FrameTimestampIndex
impl Send for FrameTimestampIndex
impl Sync for FrameTimestampIndex
impl Unpin for FrameTimestampIndex
impl UnsafeUnpin for FrameTimestampIndex
impl UnwindSafe for FrameTimestampIndex
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.