struct Spanned<T> {
    value: T,
    span: Span,
}Expand description
A value with an associated Span.
Fields§
§value: TThe value.
span: SpanWhere the value was in the format string.
Trait Implementations§
impl<T: Copy> Copy for Spanned<T>
Auto Trait Implementations§
impl<T> Freeze for Spanned<T>where
    T: Freeze,
impl<T> RefUnwindSafe for Spanned<T>where
    T: RefUnwindSafe,
impl<T> Send for Spanned<T>where
    T: Send,
impl<T> Sync for Spanned<T>where
    T: Sync,
impl<T> Unpin for Spanned<T>where
    T: Unpin,
impl<T> UnwindSafe for Spanned<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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> Sealed for T
 
impl<T> Sealed for T
Source§impl<T> Sealed for T
 
impl<T> Sealed for T
Source§fn parse_date(&self, input: &[u8]) -> Result<Date, Parse>
 
fn parse_date(&self, input: &[u8]) -> Result<Date, Parse>
Parse a 
Date from the format description.Source§fn parse_time(&self, input: &[u8]) -> Result<Time, Parse>
 
fn parse_time(&self, input: &[u8]) -> Result<Time, Parse>
Parse a 
Time from the format description.Source§fn parse_offset(&self, input: &[u8]) -> Result<UtcOffset, Parse>
 
fn parse_offset(&self, input: &[u8]) -> Result<UtcOffset, Parse>
Parse a 
UtcOffset from the format description.Source§fn parse_primitive_date_time(
    &self,
    input: &[u8],
) -> Result<PrimitiveDateTime, Parse>
 
fn parse_primitive_date_time( &self, input: &[u8], ) -> Result<PrimitiveDateTime, Parse>
Parse a 
PrimitiveDateTime from the format description.Source§fn parse_utc_date_time(&self, input: &[u8]) -> Result<UtcDateTime, Parse>
 
fn parse_utc_date_time(&self, input: &[u8]) -> Result<UtcDateTime, Parse>
Parse a 
UtcDateTime from the format description.Source§fn parse_offset_date_time(&self, input: &[u8]) -> Result<OffsetDateTime, Parse>
 
fn parse_offset_date_time(&self, input: &[u8]) -> Result<OffsetDateTime, Parse>
Parse a 
OffsetDateTime from the format description.