pub struct FrcTimeline(/* private fields */);
Implementations§
Source§impl FrcTimeline
impl FrcTimeline
pub fn new() -> Self
pub fn from_vec_sorted(vec: Vec<FrcTimestampedValue>) -> Self
pub fn from_vec(vec: Vec<FrcTimestampedValue>) -> Self
pub fn to_vec(self) -> Vec<FrcTimestampedValue>
pub fn is_all_same_type(&self) -> bool
pub fn is_all_same_type_as(&self, other: &FrcType) -> bool
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
Sourcepub fn get_by_timestamp(
&self,
timestamp: u64,
closest_after: bool,
) -> Option<&FrcTimestampedValue>
pub fn get_by_timestamp( &self, timestamp: u64, closest_after: bool, ) -> Option<&FrcTimestampedValue>
if closest above will get the value with the closest timestamp that is after the given timestamp if closest above is false, will get the value with the closest timestamp that is before the given timestamp
Trait Implementations§
Source§impl Clone for FrcTimeline
impl Clone for FrcTimeline
Source§fn clone(&self) -> FrcTimeline
fn clone(&self) -> FrcTimeline
Returns a duplicate of the value. Read more
1.0.0 · 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 FrcTimeline
impl Debug for FrcTimeline
Source§impl<'de> Deserialize<'de> for FrcTimeline
impl<'de> Deserialize<'de> for FrcTimeline
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl IntoIterator for FrcTimeline
impl IntoIterator for FrcTimeline
Auto Trait Implementations§
impl Freeze for FrcTimeline
impl RefUnwindSafe for FrcTimeline
impl Send for FrcTimeline
impl Sync for FrcTimeline
impl Unpin for FrcTimeline
impl UnwindSafe for FrcTimeline
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