pub struct MvarTable<'a> {
pub major_version: u16,
pub minor_version: u16,
/* private fields */
}Expand description
MVAR Metrics Variations Table
Fields§
§major_version: u16Major version number of the metrics variations table.
minor_version: u16Minor version number of the metrics variations table.
Implementations§
Source§impl<'a> MvarTable<'a>
impl<'a> MvarTable<'a>
Sourcepub fn lookup(&self, tag: u32, instance: &OwnedTuple) -> Option<f32>
pub fn lookup(&self, tag: u32, instance: &OwnedTuple) -> Option<f32>
Retrieve the delta for the supplied value tag.
Sourcepub fn value_records(&self) -> impl Iterator<Item = ValueRecord> + 'a
pub fn value_records(&self) -> impl Iterator<Item = ValueRecord> + 'a
Iterator over the ValueRecords in this MVAR table.
Sourcepub fn value_records_len(&self) -> u16
pub fn value_records_len(&self) -> u16
The number of ValueRecords in this MVAR table.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MvarTable<'a>
impl<'a> RefUnwindSafe for MvarTable<'a>
impl<'a> Send for MvarTable<'a>
impl<'a> Sync for MvarTable<'a>
impl<'a> Unpin for MvarTable<'a>
impl<'a> UnwindSafe for MvarTable<'a>
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> 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