pub enum ParseIrOpt<T> {
Ready(T),
Parsed(T, Value),
}Expand description
Intermediate result for a type that optionally requires parsing.
Variants§
Ready(T)
Type instance is ready without parsing.
Parsed(T, Value)
Type instance is successfully parsed from this value.
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for ParseIrOpt<T>
impl<T: Clone> Clone for ParseIrOpt<T>
Source§fn clone(&self) -> ParseIrOpt<T>
fn clone(&self) -> ParseIrOpt<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for ParseIrOpt<T>
impl<T: Debug> Debug for ParseIrOpt<T>
Source§impl From<ParseIrOpt<Duration>> for Duration
impl From<ParseIrOpt<Duration>> for Duration
Source§fn from(value: ParseIrOpt<Duration>) -> Self
fn from(value: ParseIrOpt<Duration>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<Duration>> for Value
impl From<ParseIrOpt<Duration>> for Value
Source§fn from(value: ParseIrOpt<Duration>) -> Self
fn from(value: ParseIrOpt<Duration>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<bool>> for Value
impl From<ParseIrOpt<bool>> for Value
Source§fn from(value: ParseIrOpt<bool>) -> Self
fn from(value: ParseIrOpt<bool>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<bool>> for bool
impl From<ParseIrOpt<bool>> for bool
Source§fn from(value: ParseIrOpt<bool>) -> Self
fn from(value: ParseIrOpt<bool>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<f32>> for Value
impl From<ParseIrOpt<f32>> for Value
Source§fn from(value: ParseIrOpt<f32>) -> Self
fn from(value: ParseIrOpt<f32>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<f32>> for f32
impl From<ParseIrOpt<f32>> for f32
Source§fn from(value: ParseIrOpt<f32>) -> Self
fn from(value: ParseIrOpt<f32>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<f64>> for Value
impl From<ParseIrOpt<f64>> for Value
Source§fn from(value: ParseIrOpt<f64>) -> Self
fn from(value: ParseIrOpt<f64>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<f64>> for f64
impl From<ParseIrOpt<f64>> for f64
Source§fn from(value: ParseIrOpt<f64>) -> Self
fn from(value: ParseIrOpt<f64>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<i128>> for Value
impl From<ParseIrOpt<i128>> for Value
Source§fn from(value: ParseIrOpt<i128>) -> Self
fn from(value: ParseIrOpt<i128>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<i128>> for i128
impl From<ParseIrOpt<i128>> for i128
Source§fn from(value: ParseIrOpt<i128>) -> Self
fn from(value: ParseIrOpt<i128>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<i16>> for Value
impl From<ParseIrOpt<i16>> for Value
Source§fn from(value: ParseIrOpt<i16>) -> Self
fn from(value: ParseIrOpt<i16>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<i16>> for i16
impl From<ParseIrOpt<i16>> for i16
Source§fn from(value: ParseIrOpt<i16>) -> Self
fn from(value: ParseIrOpt<i16>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<i32>> for Value
impl From<ParseIrOpt<i32>> for Value
Source§fn from(value: ParseIrOpt<i32>) -> Self
fn from(value: ParseIrOpt<i32>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<i32>> for i32
impl From<ParseIrOpt<i32>> for i32
Source§fn from(value: ParseIrOpt<i32>) -> Self
fn from(value: ParseIrOpt<i32>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<i64>> for Value
impl From<ParseIrOpt<i64>> for Value
Source§fn from(value: ParseIrOpt<i64>) -> Self
fn from(value: ParseIrOpt<i64>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<i64>> for i64
impl From<ParseIrOpt<i64>> for i64
Source§fn from(value: ParseIrOpt<i64>) -> Self
fn from(value: ParseIrOpt<i64>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<i8>> for Value
impl From<ParseIrOpt<i8>> for Value
Source§fn from(value: ParseIrOpt<i8>) -> Self
fn from(value: ParseIrOpt<i8>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<i8>> for i8
impl From<ParseIrOpt<i8>> for i8
Source§fn from(value: ParseIrOpt<i8>) -> Self
fn from(value: ParseIrOpt<i8>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<isize>> for Value
impl From<ParseIrOpt<isize>> for Value
Source§fn from(value: ParseIrOpt<isize>) -> Self
fn from(value: ParseIrOpt<isize>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<isize>> for isize
impl From<ParseIrOpt<isize>> for isize
Source§fn from(value: ParseIrOpt<isize>) -> Self
fn from(value: ParseIrOpt<isize>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<u128>> for Value
impl From<ParseIrOpt<u128>> for Value
Source§fn from(value: ParseIrOpt<u128>) -> Self
fn from(value: ParseIrOpt<u128>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<u128>> for u128
impl From<ParseIrOpt<u128>> for u128
Source§fn from(value: ParseIrOpt<u128>) -> Self
fn from(value: ParseIrOpt<u128>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<u16>> for Value
impl From<ParseIrOpt<u16>> for Value
Source§fn from(value: ParseIrOpt<u16>) -> Self
fn from(value: ParseIrOpt<u16>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<u16>> for u16
impl From<ParseIrOpt<u16>> for u16
Source§fn from(value: ParseIrOpt<u16>) -> Self
fn from(value: ParseIrOpt<u16>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<u32>> for Value
impl From<ParseIrOpt<u32>> for Value
Source§fn from(value: ParseIrOpt<u32>) -> Self
fn from(value: ParseIrOpt<u32>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<u32>> for u32
impl From<ParseIrOpt<u32>> for u32
Source§fn from(value: ParseIrOpt<u32>) -> Self
fn from(value: ParseIrOpt<u32>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<u64>> for Value
impl From<ParseIrOpt<u64>> for Value
Source§fn from(value: ParseIrOpt<u64>) -> Self
fn from(value: ParseIrOpt<u64>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<u64>> for u64
impl From<ParseIrOpt<u64>> for u64
Source§fn from(value: ParseIrOpt<u64>) -> Self
fn from(value: ParseIrOpt<u64>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<u8>> for Value
impl From<ParseIrOpt<u8>> for Value
Source§fn from(value: ParseIrOpt<u8>) -> Self
fn from(value: ParseIrOpt<u8>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<u8>> for u8
impl From<ParseIrOpt<u8>> for u8
Source§fn from(value: ParseIrOpt<u8>) -> Self
fn from(value: ParseIrOpt<u8>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<usize>> for Value
impl From<ParseIrOpt<usize>> for Value
Source§fn from(value: ParseIrOpt<usize>) -> Self
fn from(value: ParseIrOpt<usize>) -> Self
Converts to this type from the input type.
Source§impl From<ParseIrOpt<usize>> for usize
impl From<ParseIrOpt<usize>> for usize
Source§fn from(value: ParseIrOpt<usize>) -> Self
fn from(value: ParseIrOpt<usize>) -> Self
Converts to this type from the input type.
Source§impl<T: PartialEq> PartialEq for ParseIrOpt<T>
impl<T: PartialEq> PartialEq for ParseIrOpt<T>
impl<T> StructuralPartialEq for ParseIrOpt<T>
Auto Trait Implementations§
impl<T> Freeze for ParseIrOpt<T>where
T: Freeze,
impl<T> RefUnwindSafe for ParseIrOpt<T>where
T: RefUnwindSafe,
impl<T> Send for ParseIrOpt<T>where
T: Send,
impl<T> Sync for ParseIrOpt<T>where
T: Sync,
impl<T> Unpin for ParseIrOpt<T>where
T: Unpin,
impl<T> UnwindSafe for ParseIrOpt<T>where
T: UnwindSafe,
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