Struct pushrod::core::widget_store::WidgetContainer
source · pub struct WidgetContainer {
pub widget: RefCell<Box<dyn Widget>>,
pub widget_name: String,
pub widget_id: i32,
pub parent_id: i32,
}Expand description
This is a container object that stores a Widget, assigns a name, a Widget ID, and its
parent.
Fields§
§widget: RefCell<Box<dyn Widget>>The Widget being stored.
widget_name: StringThe name of the Widget.
widget_id: i32The Widget’s automatically assigned ID.
parent_id: i32The Widget’s parent ID.
Auto Trait Implementations§
impl !Freeze for WidgetContainer
impl !RefUnwindSafe for WidgetContainer
impl !Send for WidgetContainer
impl !Sync for WidgetContainer
impl Unpin for WidgetContainer
impl !UnwindSafe for WidgetContainer
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> 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