pub struct ScriptDirection<'data> {
    pub rtl: ZeroVec<'data, UnvalidatedTinyAsciiStr<4>>,
    pub ltr: ZeroVec<'data, UnvalidatedTinyAsciiStr<4>>,
}Expand description
This directionality data is used to determine the script directionality of a locale.
๐ง 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ยง
ยงrtl: ZeroVec<'data, UnvalidatedTinyAsciiStr<4>>Scripts in right-to-left direction.
ltr: ZeroVec<'data, UnvalidatedTinyAsciiStr<4>>Scripts in left-to-right direction.
Trait Implementationsยง
Sourceยงimpl<'data> Clone for ScriptDirection<'data>
 
impl<'data> Clone for ScriptDirection<'data>
Sourceยงfn clone(&self) -> ScriptDirection<'data>
 
fn clone(&self) -> ScriptDirection<'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 ScriptDirection<'data>
 
impl<'data> Debug for ScriptDirection<'data>
Sourceยงimpl<'de, 'data> Deserialize<'de> for ScriptDirection<'data>where
    'de: 'data,
 
impl<'de, 'data> Deserialize<'de> for ScriptDirection<'data>where
    'de: 'data,
Sourceยงfn deserialize<__D>(
    __deserializer: __D,
) -> Result<ScriptDirection<'data>, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(
    __deserializer: __D,
) -> Result<ScriptDirection<'data>, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Sourceยงimpl MaybeAsVarULE for ScriptDirection<'_>
 
impl MaybeAsVarULE for ScriptDirection<'_>
Sourceยงimpl<'data> PartialEq for ScriptDirection<'data>
 
impl<'data> PartialEq for ScriptDirection<'data>
Sourceยงimpl<'a> Yokeable<'a> for ScriptDirection<'static>
 
impl<'a> Yokeable<'a> for ScriptDirection<'static>
Sourceยงtype Output = ScriptDirection<'a>
 
type Output = ScriptDirection<'a>
This type MUST be 
Self with the 'static replaced with 'a, i.e. Self<'a>Sourceยงfn transform_owned(self) -> <ScriptDirection<'static> as Yokeable<'a>>::Output
 
fn transform_owned(self) -> <ScriptDirection<'static> as Yokeable<'a>>::Output
Sourceยงunsafe fn make(
    this: <ScriptDirection<'static> as Yokeable<'a>>::Output,
) -> ScriptDirection<'static>
 
unsafe fn make( this: <ScriptDirection<'static> as Yokeable<'a>>::Output, ) -> ScriptDirection<'static>
This method can be used to cast away 
Self<'a>โs lifetime. Read moreSourceยงfn transform_mut<F>(&'a mut self, f: F)
 
fn transform_mut<F>(&'a mut self, f: F)
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, ScriptDirection<'zf_inner>> for ScriptDirection<'zf>
 
impl<'zf, 'zf_inner> ZeroFrom<'zf, ScriptDirection<'zf_inner>> for ScriptDirection<'zf>
Sourceยงfn zero_from(this: &'zf ScriptDirection<'zf_inner>) -> ScriptDirection<'zf>
 
fn zero_from(this: &'zf ScriptDirection<'zf_inner>) -> ScriptDirection<'zf>
Clone the other 
C into a struct that may retain references into C.impl<'data> StructuralPartialEq for ScriptDirection<'data>
Auto Trait Implementationsยง
impl<'data> Freeze for ScriptDirection<'data>
impl<'data> RefUnwindSafe for ScriptDirection<'data>
impl<'data> Send for ScriptDirection<'data>
impl<'data> Sync for ScriptDirection<'data>
impl<'data> Unpin for ScriptDirection<'data>
impl<'data> UnwindSafe for ScriptDirection<'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