pub struct FieldValue {
pub name: String,
pub placement: &'static str,
pub raw: u64,
pub bits: u64,
pub value: String,
}Expand description
One decoded field of a panel.
Fields§
§name: StringThe field’s full registry path, e.g. center_panel.transpose.
placement: &'static strWhere the bits sit, as LO..=HI over the declaring body’s bytes.
raw: u64The field’s bits as they were read, shifted down to bit 0. Carries no type, so it stays comparable across a retype.
bits: u64The bits the field’s current value would write.
Equal to raw on a panel decoded from bytes and not edited since —
decode and encode are inverses — so the two diverging is exactly the set of
pending changes. A Default-built panel has all-zero raw bytes, so every default
that encodes non-zero reads as pending.
value: StringThe decoded value’s Debug rendering.
Trait Implementations§
Source§impl Clone for FieldValue
impl Clone for FieldValue
Source§fn clone(&self) -> FieldValue
fn clone(&self) -> FieldValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FieldValue
impl Debug for FieldValue
Source§impl Display for FieldValue
impl Display for FieldValue
impl Eq for FieldValue
Source§impl PartialEq for FieldValue
impl PartialEq for FieldValue
impl StructuralPartialEq for FieldValue
Auto Trait Implementations§
impl Freeze for FieldValue
impl RefUnwindSafe for FieldValue
impl Send for FieldValue
impl Sync for FieldValue
impl Unpin for FieldValue
impl UnsafeUnpin for FieldValue
impl UnwindSafe for FieldValue
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.