pub struct FieldDescription<'a, T: ?Sized, K> { /* private fields */ }Expand description
A developer field’s description, given to Writer::declare.
A value is written as given; scale and offset only tell readers how to read it, and not
all of them do, so a physical value in a type that holds it exactly, or a float, reads the
same everywhere.
Implementations§
Source§impl<'a, T: ?Sized, K> FieldDescription<'a, T, K>
impl<'a, T: ?Sized, K> FieldDescription<'a, T, K>
Sourcepub const fn offset(self, offset: i8) -> Self
pub const fn offset(self, offset: i8) -> Self
The value readers subtract after scaling, from -128 to 126.
Sourcepub const fn native_field(self, num: u8) -> Self
pub const fn native_field(self, num: u8) -> Self
The profile field of K’s message this field stands in for, which some readers then
show as that field. Its units are the native field’s, without its scale and offset.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T, K> Forget for FieldDescription<'a, T, K>where
T: ?Sized,
impl<'a, T, K> Freeze for FieldDescription<'a, T, K>
impl<'a, T, K> Move for FieldDescription<'a, T, K>where
T: ?Sized,
impl<'a, T, K> RefUnwindSafe for FieldDescription<'a, T, K>where
T: ?Sized,
impl<'a, T, K> Send for FieldDescription<'a, T, K>
impl<'a, T, K> Sync for FieldDescription<'a, T, K>where
T: ?Sized,
impl<'a, T, K> Unpin for FieldDescription<'a, T, K>
impl<'a, T, K> UnsafeUnpin for FieldDescription<'a, T, K>
impl<'a, T, K> UnwindSafe for FieldDescription<'a, T, K>
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