pub struct TextLayoutOptions {
pub overflow: TextOverflow,
pub soft_wrap: bool,
pub max_lines: usize,
pub min_lines: usize,
}Expand description
Re-export the UI crate so applications can depend on a single crate.
Text layout behavior options matching Compose BasicText controls.
Fields§
§overflow: TextOverflow§soft_wrap: bool§max_lines: usize§min_lines: usizeImplementations§
Source§impl TextLayoutOptions
impl TextLayoutOptions
pub fn normalized(self) -> TextLayoutOptions
Trait Implementations§
Source§impl Clone for TextLayoutOptions
impl Clone for TextLayoutOptions
Source§fn clone(&self) -> TextLayoutOptions
fn clone(&self) -> TextLayoutOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TextLayoutOptions
Source§impl Debug for TextLayoutOptions
impl Debug for TextLayoutOptions
Source§impl Default for TextLayoutOptions
impl Default for TextLayoutOptions
Source§fn default() -> TextLayoutOptions
fn default() -> TextLayoutOptions
Returns the “default value” for a type. Read more
impl Eq for TextLayoutOptions
Source§impl From<TextLayoutOptions> for TextOptions
impl From<TextLayoutOptions> for TextOptions
Source§fn from(options: TextLayoutOptions) -> TextOptions
fn from(options: TextLayoutOptions) -> TextOptions
Converts to this type from the input type.
Source§impl From<TextOptions> for TextLayoutOptions
impl From<TextOptions> for TextLayoutOptions
Source§fn from(options: TextOptions) -> TextLayoutOptions
fn from(options: TextOptions) -> TextLayoutOptions
Converts to this type from the input type.
Source§impl Hash for TextLayoutOptions
impl Hash for TextLayoutOptions
Source§impl PartialEq for TextLayoutOptions
impl PartialEq for TextLayoutOptions
impl StructuralPartialEq for TextLayoutOptions
Auto Trait Implementations§
impl Freeze for TextLayoutOptions
impl RefUnwindSafe for TextLayoutOptions
impl Send for TextLayoutOptions
impl Sync for TextLayoutOptions
impl Unpin for TextLayoutOptions
impl UnsafeUnpin for TextLayoutOptions
impl UnwindSafe for TextLayoutOptions
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