pub struct LayoutWrapper { /* private fields */ }Expand description
A wrapper around ratatui’s Layout that can render children in split areas
Implementations§
Source§impl LayoutWrapper
impl LayoutWrapper
Sourcepub fn with_constraints(
layout: Layout,
children: Vec<AnyWidget>,
constraints: Vec<Constraint>,
) -> Self
pub fn with_constraints( layout: Layout, children: Vec<AnyWidget>, constraints: Vec<Constraint>, ) -> Self
Creates a new LayoutWrapper with custom constraints
Sourcepub fn from_elements(layout: Layout, children: Vec<Element>) -> Self
pub fn from_elements(layout: Layout, children: Vec<Element>) -> Self
Creates a new LayoutWrapper from Elements
Sourcepub fn from_elements_with_constraints(
layout: Layout,
children: Vec<Element>,
constraints: Vec<Constraint>,
) -> Self
pub fn from_elements_with_constraints( layout: Layout, children: Vec<Element>, constraints: Vec<Constraint>, ) -> Self
Creates a new LayoutWrapper from Elements with custom constraints
Trait Implementations§
Source§impl Clone for LayoutWrapper
impl Clone for LayoutWrapper
Source§fn clone(&self) -> LayoutWrapper
fn clone(&self) -> LayoutWrapper
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 moreSource§impl From<LayoutWrapper> for AnyWidget
impl From<LayoutWrapper> for AnyWidget
Source§fn from(layout: LayoutWrapper) -> Self
fn from(layout: LayoutWrapper) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for LayoutWrapper
impl !Send for LayoutWrapper
impl !Sync for LayoutWrapper
impl !UnwindSafe for LayoutWrapper
impl Freeze for LayoutWrapper
impl Unpin for LayoutWrapper
impl UnsafeUnpin for LayoutWrapper
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> 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