#[repr(transparent)]pub struct AVCaptionRubyAlignment(pub NSInteger);Available on crate feature
AVCaption only.Expand description
Choices for Ruby alignment
Given a ruby text rendering area denoted as […], each spacing policy works as follows.
Start [Ruby Text ]
Center [ Ruby Text ]
SpaceBetween [R u b y T e x t] <
- ‘R’ and ‘t’ are aligned with start end end edges, spaces between each Ruby text character is equal.
SpaceAround [ R u b y T e x t ] <
- Spaces around each Ruby text character is equal
Align Ruby base and text at left edge of horizontal text in a left to right inline progression, or at top of the vertical text in a top to bottom inline progression.
Align Ruby text at the center of Ruby base.
Align Ruby text so that the spaces between the Ruby text characters are equal. This is the default.
Align Ruby text so that the spaces around each Ruby text character are equal.
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerImplementations§
Source§impl AVCaptionRubyAlignment
impl AVCaptionRubyAlignment
pub const Start: Self
pub const Center: Self
pub const DistributeSpaceBetween: Self
pub const DistributeSpaceAround: Self
Trait Implementations§
Source§impl Clone for AVCaptionRubyAlignment
impl Clone for AVCaptionRubyAlignment
Source§fn clone(&self) -> AVCaptionRubyAlignment
fn clone(&self) -> AVCaptionRubyAlignment
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 AVCaptionRubyAlignment
impl Debug for AVCaptionRubyAlignment
Source§impl Encode for AVCaptionRubyAlignment
impl Encode for AVCaptionRubyAlignment
Source§impl Hash for AVCaptionRubyAlignment
impl Hash for AVCaptionRubyAlignment
Source§impl Ord for AVCaptionRubyAlignment
impl Ord for AVCaptionRubyAlignment
Source§fn cmp(&self, other: &AVCaptionRubyAlignment) -> Ordering
fn cmp(&self, other: &AVCaptionRubyAlignment) -> 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 AVCaptionRubyAlignment
impl PartialEq for AVCaptionRubyAlignment
Source§impl PartialOrd for AVCaptionRubyAlignment
impl PartialOrd for AVCaptionRubyAlignment
Source§impl RefEncode for AVCaptionRubyAlignment
impl RefEncode for AVCaptionRubyAlignment
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 AVCaptionRubyAlignment
impl Eq for AVCaptionRubyAlignment
impl StructuralPartialEq for AVCaptionRubyAlignment
Auto Trait Implementations§
impl Freeze for AVCaptionRubyAlignment
impl RefUnwindSafe for AVCaptionRubyAlignment
impl Send for AVCaptionRubyAlignment
impl Sync for AVCaptionRubyAlignment
impl Unpin for AVCaptionRubyAlignment
impl UnwindSafe for AVCaptionRubyAlignment
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.