struct WithLocation<T> {
value: T,
location: Location,
}Expand description
A value with an associated Location.
Fields§
§value: TThe value.
location: LocationWhere the value was in the format string.
Trait Implementations§
Source§impl<T: Clone> Clone for WithLocation<T>
impl<T: Clone> Clone for WithLocation<T>
Source§fn clone(&self) -> WithLocation<T>
fn clone(&self) -> WithLocation<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> Deref for WithLocation<T>
impl<T> Deref for WithLocation<T>
impl<T: Copy> Copy for WithLocation<T>
Auto Trait Implementations§
impl<T> Freeze for WithLocation<T>where
T: Freeze,
impl<T> RefUnwindSafe for WithLocation<T>where
T: RefUnwindSafe,
impl<T> Send for WithLocation<T>where
T: Send,
impl<T> Sync for WithLocation<T>where
T: Sync,
impl<T> Unpin for WithLocation<T>where
T: Unpin,
impl<T> UnsafeUnpin for WithLocation<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for WithLocation<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§fn format_into<V>(
&self,
output: &mut (impl Write + ?Sized),
value: &V,
state: &mut <V as ComponentProvider>::State,
) -> Result<usize, Format>where
V: ComponentProvider,
fn format_into<V>(
&self,
output: &mut (impl Write + ?Sized),
value: &V,
state: &mut <V as ComponentProvider>::State,
) -> Result<usize, Format>where
V: ComponentProvider,
Format the item into the provided output, returning the number of bytes written.
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.