pub struct Contexts<'data> {
pub format: FormatWidths<'data>,
pub stand_alone: Option<StandAloneWidths<'data>>,
}
Expand description
The struct containing the symbol data for Weekday that contains the “format” style symbol data (FormatWidths
) and “stand-alone” style symbol data (StandAloneWidths
).
🚧 This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
including in SemVer minor releases. While the serde representation of data structs is guaranteed
to be stable, their Rust representation might not be. Use with caution.
Fields§
§format: FormatWidths<'data>
The symbol data for “format” style symbols.
stand_alone: Option<StandAloneWidths<'data>>
The symbol data for “stand-alone” style symbols.
Trait Implementations§
Source§impl<'data> BakeSize for Contexts<'data>
impl<'data> BakeSize for Contexts<'data>
Source§fn borrows_size(&self) -> usize
fn borrows_size(&self) -> usize
Returns the size
Source§impl<'de, 'data> Deserialize<'de> for Contexts<'data>where
'de: 'data,
impl<'de, 'data> Deserialize<'de> for Contexts<'data>where
'de: 'data,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Contexts<'data>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Contexts<'data>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'data> Serialize for Contexts<'data>
impl<'data> Serialize for Contexts<'data>
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl<'a> Yokeable<'a> for Contexts<'static>
impl<'a> Yokeable<'a> for Contexts<'static>
Source§type Output = Contexts<'a>
type Output = Contexts<'a>
This type MUST be
Self
with the 'static
replaced with 'a
, i.e. Self<'a>
impl<'data> StructuralPartialEq for Contexts<'data>
Auto Trait Implementations§
impl<'data> Freeze for Contexts<'data>
impl<'data> RefUnwindSafe for Contexts<'data>
impl<'data> Send for Contexts<'data>
impl<'data> Sync for Contexts<'data>
impl<'data> Unpin for Contexts<'data>
impl<'data> UnwindSafe for Contexts<'data>
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> 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