pub struct StackEntry {
pub component: Arc<dyn Component>,
pub options: StackEntryOptions,
}Expand description
A child entry in a stack.
Fields§
§component: Arc<dyn Component>§options: StackEntryOptionsImplementations§
Source§impl StackEntry
impl StackEntry
Sourcepub fn new(component: Arc<dyn Component>) -> Self
pub fn new(component: Arc<dyn Component>) -> Self
Create a new stack entry with default options.
Sourcepub fn with_options(
component: Arc<dyn Component>,
options: StackEntryOptions,
) -> Self
pub fn with_options( component: Arc<dyn Component>, options: StackEntryOptions, ) -> Self
Create a new stack entry with options.
Sourcepub fn to_layout_entry(&self) -> StackLayoutEntry
pub fn to_layout_entry(&self) -> StackLayoutEntry
Convert to a StackLayoutEntry for the layout system.
Trait Implementations§
Source§impl Clone for StackEntry
impl Clone for StackEntry
Source§impl From<StackEntry> for StackChild
impl From<StackEntry> for StackChild
Source§fn from(entry: StackEntry) -> Self
fn from(entry: StackEntry) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for StackEntry
impl !UnwindSafe for StackEntry
impl Freeze for StackEntry
impl Send for StackEntry
impl Sync for StackEntry
impl Unpin for StackEntry
impl UnsafeUnpin for StackEntry
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