pub struct BidiLevel(/* private fields */);Expand description
Bidirectional text embedding level.
These are numbers indicating how deeply bidirectional embeddings are nested in the text, and the default direction of text on that level. Even levels are left-to-right, odd levels are right-to-left. Normally, the minimum level is 0 (left-to-right), and the maximum level, according to UAX #9 § 3.1.1 BD2, is 125.
See UAX #9 § 3.1 for more information.
Implementations§
Source§impl BidiLevel
impl BidiLevel
Sourcepub const MAX: Self
pub const MAX: Self
The maximum bidirectional text embedding level, according to UAX #9 § 3.1.1 BD2.
It is possible for BidiLevel to encode greater values; in particular, unsafe code must
not rely on BidiLevel never being greater than this.
Trait Implementations§
impl Copy for BidiLevel
impl Eq for BidiLevel
Source§impl Ord for BidiLevel
impl Ord for BidiLevel
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for BidiLevel
impl PartialOrd for BidiLevel
impl Pod for BidiLevel
Available on crate feature
bytemuck only.impl StructuralPartialEq for BidiLevel
Auto Trait Implementations§
impl Freeze for BidiLevel
impl RefUnwindSafe for BidiLevel
impl Send for BidiLevel
impl Sync for BidiLevel
impl Unpin for BidiLevel
impl UnsafeUnpin for BidiLevel
impl UnwindSafe for BidiLevel
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.