#[repr(transparent)]pub struct CTLineBreakMode(pub u8);Available on crate feature
CTParagraphStyle only.Expand description
These constants specify what happens when a line is too long for its frame.
Wrapping occurs at word boundaries, unless the word itself doesn’t fit on a single line.
Wrapping occurs before the first character that doesn’t fit.
Lines are simply not drawn past the edge of the frame.
Each line is displayed so that the end fits in the frame and the missing text is indicated by some kind of ellipsis glyph.
Each line is displayed so that the beginning fits in the container and the missing text is indicated by some kind of ellipsis glyph.
Each line is displayed so that the beginning and end fit in the container and the missing text is indicated by some kind of ellipsis glyph in the middle.
See also Apple’s documentation
Tuple Fields§
§0: u8Implementations§
Source§impl CTLineBreakMode
impl CTLineBreakMode
pub const ByWordWrapping: Self
pub const ByCharWrapping: Self
pub const ByClipping: Self
pub const ByTruncatingHead: Self
pub const ByTruncatingTail: Self
pub const ByTruncatingMiddle: Self
Trait Implementations§
Source§impl Clone for CTLineBreakMode
impl Clone for CTLineBreakMode
Source§fn clone(&self) -> CTLineBreakMode
fn clone(&self) -> CTLineBreakMode
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 CTLineBreakMode
impl Debug for CTLineBreakMode
Source§impl Encode for CTLineBreakMode
Available on crate feature objc2 only.
impl Encode for CTLineBreakMode
Available on crate feature
objc2 only.Source§impl Hash for CTLineBreakMode
impl Hash for CTLineBreakMode
Source§impl Ord for CTLineBreakMode
impl Ord for CTLineBreakMode
Source§fn cmp(&self, other: &CTLineBreakMode) -> Ordering
fn cmp(&self, other: &CTLineBreakMode) -> 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 CTLineBreakMode
impl PartialEq for CTLineBreakMode
Source§impl PartialOrd for CTLineBreakMode
impl PartialOrd for CTLineBreakMode
Source§impl RefEncode for CTLineBreakMode
Available on crate feature objc2 only.
impl RefEncode for CTLineBreakMode
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 CTLineBreakMode
impl Eq for CTLineBreakMode
impl StructuralPartialEq for CTLineBreakMode
Auto Trait Implementations§
impl Freeze for CTLineBreakMode
impl RefUnwindSafe for CTLineBreakMode
impl Send for CTLineBreakMode
impl Sync for CTLineBreakMode
impl Unpin for CTLineBreakMode
impl UnwindSafe for CTLineBreakMode
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.