pub enum Value {
InnerList,
String {
range: Range<usize>,
escape: bool,
},
Token(Range<usize>),
Integer(i64),
Decimal {
numer: i64,
denom: i64,
},
Date(i64),
ByteSeq(Range<usize>),
Bool(bool),
DispString(Range<usize>),
}Expand description
Represents Structured Field Value data types.
Variants§
InnerList
InnerList represents Inner lists.
String
String represents Strings. range is the starting and ending
positions in the input byte array. escape is true if String
contains \ escaped character.
Token(Range<usize>)
Token represents Tokens. It contains the starting and ending positions in the input byte array.
Integer(i64)
Integer represents Integers.
Decimal
Decimal represents Decimals. numer is the numerator and denom is the denominator of the number when it is represented in a rational number.
Date(i64)
ByteSeq(Range<usize>)
ByteSeq represents Byte Sequences. It contains the starting and ending positions in the input byte array.
Bool(bool)
Bool represents Booleans.
DispString(Range<usize>)
DispString represents Display Strings. It contains the starting and ending positions in the input byte array.
Trait Implementations§
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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