pub struct Profile<'a> {
pub direction: Direction,
pub increment: Increment,
pub spacing: Spacing,
pub element: DataField,
/* private fields */
}Expand description
A compact profile record’s payload.
Fields§
§direction: DirectionForward, inverse, or with register numbers.
increment: IncrementWhat the elements mean.
spacing: SpacingThe time between elements.
element: DataFieldHow each element is coded.
Implementations§
Source§impl<'a> Profile<'a>
impl<'a> Profile<'a>
Sourcepub fn element(&self, k: usize) -> Option<i128>
pub fn element(&self, k: usize) -> Option<i128>
Element k (0-based) as transmitted, None if it is out of range or holds the
“illegal” preset value (unused or overflowed).
Sourcepub fn offset(&self, k: usize) -> Option<Offset>
pub fn offset(&self, k: usize) -> Option<Offset>
When element k (0-based) was taken, relative to the base time: k + 1 spacings
later, or earlier for an inverse profile. None for elements that are columns,
not points in time, a reserved spacing, or k out of range.
Trait Implementations§
impl<'a> Copy for Profile<'a>
impl<'a> Eq for Profile<'a>
impl<'a> StructuralPartialEq for Profile<'a>
Auto Trait Implementations§
impl<'a> Forget for Profile<'a>
impl<'a> Freeze for Profile<'a>
impl<'a> Move for Profile<'a>
impl<'a> RefUnwindSafe for Profile<'a>
impl<'a> Send for Profile<'a>
impl<'a> Sync for Profile<'a>
impl<'a> Unpin for Profile<'a>
impl<'a> UnsafeUnpin for Profile<'a>where
&'a [u8]: UnsafeUnpin,
impl<'a> UnwindSafe for Profile<'a>where
&'a [u8]: UnwindSafe,
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