pub struct Props { /* private fields */ }Implementations§
Source§impl Props
impl Props
pub fn new() -> Self
pub fn add_prop( &mut self, t: TimeIndexEntry, prop_id: usize, prop: Prop, ) -> Result<(), TPropError>
pub fn add_metadata( &mut self, prop_id: usize, prop: Prop, ) -> Result<(), MetadataError>
pub fn update_metadata( &mut self, prop_id: usize, prop: Prop, ) -> Result<(), MetadataError>
pub fn metadata(&self, prop_id: usize) -> Option<&Prop>
pub fn temporal_prop(&self, prop_id: usize) -> Option<&TProp>
pub fn metadata_ids(&self) -> impl Iterator<Item = usize> + '_
pub fn temporal_prop_ids( &self, ) -> impl Iterator<Item = usize> + Send + Sync + '_
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Props
impl<'de> Deserialize<'de> for Props
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
impl StructuralPartialEq for Props
Auto Trait Implementations§
impl Freeze for Props
impl RefUnwindSafe for Props
impl Send for Props
impl Sync for Props
impl Unpin for Props
impl UnwindSafe for Props
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more