pub enum FieldValue {
None,
U64(u64),
Bytes(Vec<u8>),
Text(String),
Uid([u8; 16]),
Enum {
raw: u64,
name: String,
},
Flags {
raw: u64,
set: Vec<String>,
},
}Expand description
A decoded field’s value, kept independent of any output format.
Variants§
None
A grouping node with no value of its own.
U64(u64)
Bytes(Vec<u8>)
Text(String)
Uid([u8; 16])
Enum
A numeric code with a human name, e.g. kind = 1 (file).
Flags
A bitset with the names of the bits that are set.
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 PartialEq for FieldValue
impl PartialEq for FieldValue
Source§fn eq(&self, other: &FieldValue) -> bool
fn eq(&self, other: &FieldValue) -> bool
Tests for
self and other values to be equal, and is used by ==.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