pub struct Plain {
pub value: Option<Value>,
pub read: Option<Widening>,
pub scale: i128,
pub offset: i128,
}Expand description
An invariant with no second symbol in it, read as scale * value + offset.
What every reader but crate::split wants, and what every reader wanted before there was an
on at all. Invariant::plain is the only way to one, so a reader that does not know about
the second symbol cannot get an expression that has one.
Fields§
§value: Option<Value>What it is built on, or None for a plain number.
read: Option<Widening>How that value is read, when it is read at a width that is not its own.
scale: i128How many of it.
offset: i128What is added to it.
Trait Implementations§
impl Copy for Plain
impl Eq for Plain
impl StructuralPartialEq for Plain
Auto Trait Implementations§
impl Freeze for Plain
impl RefUnwindSafe for Plain
impl Send for Plain
impl Sync for Plain
impl Unpin for Plain
impl UnsafeUnpin for Plain
impl UnwindSafe for Plain
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