pub struct VerticalOrientation(/* private fields */);
Expand description
Property Vertical_Orientation
See UTR #50: https://www.unicode.org/reports/tr50/#vo
§Example
use icu::properties::{props::VerticalOrientation, CodePointMapData};
assert_eq!(
CodePointMapData::<VerticalOrientation>::new().get('a'),
VerticalOrientation::Rotated
);
assert_eq!(
CodePointMapData::<VerticalOrientation>::new().get('§'),
VerticalOrientation::Upright
);
assert_eq!(
CodePointMapData::<VerticalOrientation>::new().get32(0x2329),
VerticalOrientation::TransformedRotated
);
assert_eq!(
CodePointMapData::<VerticalOrientation>::new().get32(0x3001),
VerticalOrientation::TransformedUpright
);
Implementations§
Source§impl VerticalOrientation
impl VerticalOrientation
Sourcepub const fn to_icu4c_value(self) -> u8
pub const fn to_icu4c_value(self) -> u8
Returns an ICU4C UVerticalOrientation
value.
Sourcepub const fn from_icu4c_value(value: u8) -> Self
pub const fn from_icu4c_value(value: u8) -> Self
Constructor from an ICU4C UVerticalOrientation
value.
Source§impl VerticalOrientation
impl VerticalOrientation
pub const Rotated: VerticalOrientation
pub const TransformedRotated: VerticalOrientation
pub const TransformedUpright: VerticalOrientation
pub const Upright: VerticalOrientation
Sourcepub const ALL_VALUES: &'static [VerticalOrientation]
pub const ALL_VALUES: &'static [VerticalOrientation]
All possible values of this enum in the Unicode version from this ICU4X release.
Trait Implementations§
Source§impl AsULE for VerticalOrientation
impl AsULE for VerticalOrientation
Source§impl Clone for VerticalOrientation
impl Clone for VerticalOrientation
Source§fn clone(&self) -> VerticalOrientation
fn clone(&self) -> VerticalOrientation
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 Debug for VerticalOrientation
impl Debug for VerticalOrientation
Source§impl From<VerticalOrientation> for u16
impl From<VerticalOrientation> for u16
Source§fn from(other: VerticalOrientation) -> Self
fn from(other: VerticalOrientation) -> Self
Converts to this type from the input type.
Source§impl Hash for VerticalOrientation
impl Hash for VerticalOrientation
Source§impl NamedEnumeratedProperty for VerticalOrientation
impl NamedEnumeratedProperty for VerticalOrientation
Source§fn try_from_str(s: &str) -> Option<Self>
fn try_from_str(s: &str) -> Option<Self>
Convenience method for
PropertyParser::new().get_loose(s)
Read moreSource§fn long_name(&self) -> &'static str
fn long_name(&self) -> &'static str
Convenience method for
PropertyNamesLong::new().get(*self).unwrap()
Read moreSource§fn short_name(&self) -> &'static str
fn short_name(&self) -> &'static str
Convenience method for
PropertyNamesShort::new().get(*self).unwrap()
Read moreSource§impl Ord for VerticalOrientation
impl Ord for VerticalOrientation
Source§fn cmp(&self, other: &VerticalOrientation) -> Ordering
fn cmp(&self, other: &VerticalOrientation) -> Ordering
1.21.0 · 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
Source§impl PartialEq for VerticalOrientation
impl PartialEq for VerticalOrientation
Source§impl PartialOrd for VerticalOrientation
impl PartialOrd for VerticalOrientation
Source§impl TrieValue for VerticalOrientation
impl TrieValue for VerticalOrientation
Source§type TryFromU32Error = TryFromIntError
type TryFromU32Error = TryFromIntError
Last-resort fallback value to return if we cannot read data from the trie. Read more
Source§fn try_from_u32(i: u32) -> Result<Self, Self::TryFromU32Error>
fn try_from_u32(i: u32) -> Result<Self, Self::TryFromU32Error>
A parsing function that is primarily motivated by deserialization contexts.
When the serialization type width is smaller than 32 bits, then it is expected
that the call site will widen the value to a
u32
first.impl Copy for VerticalOrientation
impl Eq for VerticalOrientation
impl ParseableEnumeratedProperty for VerticalOrientation
impl StructuralPartialEq for VerticalOrientation
Auto Trait Implementations§
impl Freeze for VerticalOrientation
impl RefUnwindSafe for VerticalOrientation
impl Send for VerticalOrientation
impl Sync for VerticalOrientation
impl Unpin for VerticalOrientation
impl UnwindSafe for VerticalOrientation
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