pub struct StandAloneWidths<'data> {
pub abbreviated: Option<Symbols<'data>>,
pub narrow: Option<Symbols<'data>>,
pub short: Option<Symbols<'data>>,
pub wide: Option<Symbols<'data>>,
}
Expand description
Symbol data for the “stand-alone” style formatting of DayPeriod.
The stand-alone style is used in contexts where the field is displayed by itself.
🚧 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§
§abbreviated: Option<Symbols<'data>>
Abbreviated length symbol for “stand-alone” style symbol for day_periods.
narrow: Option<Symbols<'data>>
Narrow length symbol for “stand-alone” style symbol for day_periods.
short: Option<Symbols<'data>>
Short length symbol for “stand-alone” style symbol for day_periods.
wide: Option<Symbols<'data>>
Wide length symbol for “stand-alone” style symbol for day_periods.
Trait Implementations§
Source§impl<'data> Bake for StandAloneWidths<'data>
impl<'data> Bake for StandAloneWidths<'data>
Source§fn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
Source§impl<'data> BakeSize for StandAloneWidths<'data>
impl<'data> BakeSize for StandAloneWidths<'data>
Source§fn borrows_size(&self) -> usize
fn borrows_size(&self) -> usize
Returns the size
Source§impl<'data> Clone for StandAloneWidths<'data>
impl<'data> Clone for StandAloneWidths<'data>
Source§fn clone(&self) -> StandAloneWidths<'data>
fn clone(&self) -> StandAloneWidths<'data>
Returns a copy 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<'data> Debug for StandAloneWidths<'data>
impl<'data> Debug for StandAloneWidths<'data>
Source§impl<'data> Default for StandAloneWidths<'data>
impl<'data> Default for StandAloneWidths<'data>
Source§fn default() -> StandAloneWidths<'data>
fn default() -> StandAloneWidths<'data>
Returns the “default value” for a type. Read more
Source§impl<'de: 'data, 'data> Deserialize<'de> for StandAloneWidths<'data>
impl<'de: 'data, 'data> Deserialize<'de> for StandAloneWidths<'data>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'data> PartialEq for StandAloneWidths<'data>
impl<'data> PartialEq for StandAloneWidths<'data>
Source§impl<'data> Serialize for StandAloneWidths<'data>
impl<'data> Serialize for StandAloneWidths<'data>
Source§impl<'a> Yokeable<'a> for StandAloneWidths<'static>
impl<'a> Yokeable<'a> for StandAloneWidths<'static>
Source§type Output = StandAloneWidths<'a>
type Output = StandAloneWidths<'a>
This type MUST be
Self
with the 'static
replaced with 'a
, i.e. Self<'a>
Source§fn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
Source§unsafe fn make(this: Self::Output) -> Self
unsafe fn make(this: Self::Output) -> Self
This method can be used to cast away
Self<'a>
’s lifetime. Read moreSource§fn transform_mut<F>(&'a mut self, f: F)where
F: 'static + for<'b> FnOnce(&'b mut Self::Output),
fn transform_mut<F>(&'a mut self, f: F)where
F: 'static + for<'b> FnOnce(&'b mut Self::Output),
This method must cast
self
between &'a mut Self<'static>
and &'a mut Self<'a>
,
and pass it to f
. Read moreSource§impl<'zf, 'zf_inner> ZeroFrom<'zf, StandAloneWidths<'zf_inner>> for StandAloneWidths<'zf>
impl<'zf, 'zf_inner> ZeroFrom<'zf, StandAloneWidths<'zf_inner>> for StandAloneWidths<'zf>
Source§fn zero_from(this: &'zf StandAloneWidths<'zf_inner>) -> Self
fn zero_from(this: &'zf StandAloneWidths<'zf_inner>) -> Self
Clone the other
C
into a struct that may retain references into C
.impl<'data> StructuralPartialEq for StandAloneWidths<'data>
Auto Trait Implementations§
impl<'data> Freeze for StandAloneWidths<'data>
impl<'data> RefUnwindSafe for StandAloneWidths<'data>
impl<'data> Send for StandAloneWidths<'data>
impl<'data> Sync for StandAloneWidths<'data>
impl<'data> Unpin for StandAloneWidths<'data>
impl<'data> UnwindSafe for StandAloneWidths<'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