struct Spanned<T> {
value: T,
span: Span,
}
Available on (crate features
formatting
or parsing
) and crate feature alloc
only.Expand description
A value with an associated Span
.
Fields§
§value: T
The value.
span: Span
Where 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_into<'a>(
&self,
input: &'a [u8],
parsed: &mut Parsed,
) -> Result<&'a [u8], Parse>
fn parse_into<'a>( &self, input: &'a [u8], parsed: &mut Parsed, ) -> Result<&'a [u8], Parse>
Available on crate feature
parsing
only.Source§fn parse(&self, input: &[u8]) -> Result<Parsed, Parse>
fn parse(&self, input: &[u8]) -> Result<Parsed, Parse>
Available on crate feature
parsing
only.Source§fn parse_date(&self, input: &[u8]) -> Result<Date, Parse>
fn parse_date(&self, input: &[u8]) -> Result<Date, Parse>
Available on crate feature
parsing
only.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>
Available on crate feature
parsing
only.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>
Available on crate feature
parsing
only.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>
Available on crate feature
parsing
only.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>
Available on crate feature
parsing
only.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>
Available on crate feature
parsing
only.Parse a
OffsetDateTime
from the format description.