pub struct WrappedTextProps {Show 14 fields
pub text: String,
pub style: Style,
pub alignment: Alignment,
pub scroll: Position,
pub wrap_width: Option<u16>,
pub break_words: Option<bool>,
pub auto_height: Option<bool>,
pub margin: Margin,
pub offset: Offset,
pub width: Constraint,
pub height: Constraint,
pub gap: i32,
pub flex_direction: Direction,
pub justify_content: Flex,
}Fields§
§text: String§style: Style§alignment: Alignment§scroll: Position§wrap_width: Option<u16>§break_words: Option<bool>§auto_height: Option<bool>§margin: Margin§offset: Offset§width: Constraint§height: Constraint§gap: i32§flex_direction: Direction§justify_content: FlexImplementations§
Source§impl WrappedTextProps
impl WrappedTextProps
Sourcepub fn layout_style(&self) -> LayoutStyle
pub fn layout_style(&self) -> LayoutStyle
Returns the layout style based on the layout-related fields of this struct.
Trait Implementations§
Source§impl Default for WrappedTextProps
impl Default for WrappedTextProps
Source§fn default() -> WrappedTextProps
fn default() -> WrappedTextProps
Returns the “default value” for a type. Read more
impl Props for WrappedTextProps
Auto Trait Implementations§
impl Freeze for WrappedTextProps
impl RefUnwindSafe for WrappedTextProps
impl Send for WrappedTextProps
impl Sync for WrappedTextProps
impl Unpin for WrappedTextProps
impl UnsafeUnpin for WrappedTextProps
impl UnwindSafe for WrappedTextProps
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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