Struct icu_datetime::provider::calendar::day_periods::SymbolsV1
source · [−]pub struct SymbolsV1<'data> {
pub am: Cow<'data, str>,
pub pm: Cow<'data, str>,
pub noon: Option<Cow<'data, str>>,
pub midnight: Option<Cow<'data, str>>,
}
Fields
am: Cow<'data, str>
pm: Cow<'data, str>
noon: Option<Cow<'data, str>>
midnight: Option<Cow<'data, str>>
Trait Implementations
sourceimpl<'de: 'data, 'data> Deserialize<'de> for SymbolsV1<'data>
impl<'de: 'data, 'data> Deserialize<'de> for SymbolsV1<'data>
sourcefn 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
sourceimpl<'a> Yokeable<'a> for SymbolsV1<'static>
impl<'a> Yokeable<'a> for SymbolsV1<'static>
sourcefn transform(&'a self) -> &'a Self::Output
fn transform(&'a self) -> &'a Self::Output
This method must cast self
between &'a Self<'static>
and &'a Self<'a>
. Read more
sourcefn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
This method must cast self
between Self<'static>
and Self<'a>
. Read more
sourceunsafe 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 more
sourcefn 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 more
impl<'a> IsCovariant<'a> for SymbolsV1<'a>
impl<'data> StructuralPartialEq for SymbolsV1<'data>
Auto Trait Implementations
impl<'data> RefUnwindSafe for SymbolsV1<'data>
impl<'data> Send for SymbolsV1<'data>
impl<'data> Sync for SymbolsV1<'data>
impl<'data> Unpin for SymbolsV1<'data>
impl<'data> UnwindSafe for SymbolsV1<'data>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Serialize for T where
T: Serialize + ?Sized,
impl<T> Serialize for T where
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more