pub enum SequenceOptionValue {
Absent,
Integer(i64),
Text(String),
}Expand description
A sequence option’s value as the parser keeps it, before it is read as a 64-bit integer.
Variants§
Absent
No value: NO MINVALUE, NO MAXVALUE or a bare RESTART.
Integer(i64)
An integer the parser read.
Text(String)
A number the parser kept as written: one outside the 32-bit range, or with a fraction or an exponent.
Trait Implementations§
Source§impl Clone for SequenceOptionValue
impl Clone for SequenceOptionValue
Source§impl Debug for SequenceOptionValue
impl Debug for SequenceOptionValue
Source§impl<'de> Deserialize<'de> for SequenceOptionValue
impl<'de> Deserialize<'de> for SequenceOptionValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SequenceOptionValue
Source§impl PartialEq for SequenceOptionValue
impl PartialEq for SequenceOptionValue
Source§impl Serialize for SequenceOptionValue
impl Serialize for SequenceOptionValue
impl StructuralPartialEq for SequenceOptionValue
Auto Trait Implementations§
impl Freeze for SequenceOptionValue
impl RefUnwindSafe for SequenceOptionValue
impl Send for SequenceOptionValue
impl Sync for SequenceOptionValue
impl Unpin for SequenceOptionValue
impl UnsafeUnpin for SequenceOptionValue
impl UnwindSafe for SequenceOptionValue
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more