#[repr(transparent)]pub struct CTRubyPosition(pub u8);Available on crate feature
CTRubyAnnotation only.Expand description
These constants specify the position of the ruby text with respect to the base text.
The ruby text is positioned before the base text; i.e. above horizontal text and to the right of vertical text.
The ruby text is positioned after the base text; i.e. below horizontal text and to the left of vertical text.
The ruby text is positioned to the right of the base text whether it is horizontal or vertical. This is the way that Bopomofo annotations are attached to Chinese text in Taiwan.
The ruby text follows the base text with no special styling.
See also Apple’s documentation
Tuple Fields§
§0: u8Implementations§
Trait Implementations§
Source§impl Clone for CTRubyPosition
impl Clone for CTRubyPosition
Source§fn clone(&self) -> CTRubyPosition
fn clone(&self) -> CTRubyPosition
Returns a duplicate 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 CTRubyPosition
impl Debug for CTRubyPosition
Source§impl Encode for CTRubyPosition
Available on crate feature objc2 only.
impl Encode for CTRubyPosition
Available on crate feature
objc2 only.Source§impl Hash for CTRubyPosition
impl Hash for CTRubyPosition
Source§impl Ord for CTRubyPosition
impl Ord for CTRubyPosition
Source§fn cmp(&self, other: &CTRubyPosition) -> Ordering
fn cmp(&self, other: &CTRubyPosition) -> 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 CTRubyPosition
impl PartialEq for CTRubyPosition
Source§impl PartialOrd for CTRubyPosition
impl PartialOrd for CTRubyPosition
Source§impl RefEncode for CTRubyPosition
Available on crate feature objc2 only.
impl RefEncode for CTRubyPosition
Available on crate feature
objc2 only.Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for CTRubyPosition
impl Eq for CTRubyPosition
impl StructuralPartialEq for CTRubyPosition
Auto Trait Implementations§
impl Freeze for CTRubyPosition
impl RefUnwindSafe for CTRubyPosition
impl Send for CTRubyPosition
impl Sync for CTRubyPosition
impl Unpin for CTRubyPosition
impl UnwindSafe for CTRubyPosition
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> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.