pub struct TextOptions {
pub overflow: TextOverflow,
pub soft_wrap: bool,
pub max_lines: Option<usize>,
pub min_lines: usize,
}Expand description
High-level text widget options for constrained UI text.
None for max_lines means no explicit line limit.
Fields§
§overflow: TextOverflow§soft_wrap: bool§max_lines: Option<usize>§min_lines: usizeTrait Implementations§
Source§impl Clone for TextOptions
impl Clone for TextOptions
impl Copy for TextOptions
Source§impl Debug for TextOptions
impl Debug for TextOptions
Source§impl Default for TextOptions
impl Default for TextOptions
impl Eq for TextOptions
Source§impl From<TextLayoutOptions> for TextOptions
impl From<TextLayoutOptions> for TextOptions
Source§fn from(options: TextLayoutOptions) -> Self
fn from(options: TextLayoutOptions) -> Self
Converts to this type from the input type.
Source§impl From<TextOptions> for TextLayoutOptions
impl From<TextOptions> for TextLayoutOptions
Source§fn from(options: TextOptions) -> Self
fn from(options: TextOptions) -> Self
Converts to this type from the input type.
Source§impl Hash for TextOptions
impl Hash for TextOptions
Source§impl PartialEq for TextOptions
impl PartialEq for TextOptions
impl StructuralPartialEq for TextOptions
Auto Trait Implementations§
impl Freeze for TextOptions
impl RefUnwindSafe for TextOptions
impl Send for TextOptions
impl Sync for TextOptions
impl Unpin for TextOptions
impl UnsafeUnpin for TextOptions
impl UnwindSafe for TextOptions
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more