pub enum WidgetNode {
    None,
    Component(WidgetComponent),
    Unit(WidgetUnitNode),
    Tuple(Vec<WidgetNode>),
}Variants§
Implementations§
Source§impl WidgetNode
 
impl WidgetNode
pub fn is_none(&self) -> bool
pub fn is_some(&self) -> bool
pub fn as_component(&self) -> Option<&WidgetComponent>
pub fn as_unit(&self) -> Option<&WidgetUnitNode>
pub fn as_tuple(&self) -> Option<&[WidgetNode]>
pub fn props(&self) -> Option<&Props>
pub fn props_mut(&mut self) -> Option<&mut Props>
pub fn remap_props<F>(&mut self, f: F)
pub fn pack_tuple<const N: usize>(data: [WidgetNode; N]) -> Self
pub fn unpack_tuple<const N: usize>(self) -> [WidgetNode; N]
Trait Implementations§
Source§impl Clone for WidgetNode
 
impl Clone for WidgetNode
Source§fn clone(&self) -> WidgetNode
 
fn clone(&self) -> WidgetNode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for WidgetNode
 
impl Debug for WidgetNode
Source§impl Default for WidgetNode
 
impl Default for WidgetNode
Source§fn default() -> WidgetNode
 
fn default() -> WidgetNode
Returns the “default value” for a type. Read more
Source§impl<const N: usize> From<[WidgetNode; N]> for WidgetNode
 
impl<const N: usize> From<[WidgetNode; N]> for WidgetNode
Source§fn from(data: [WidgetNode; N]) -> Self
 
fn from(data: [WidgetNode; N]) -> Self
Converts to this type from the input type.
Source§impl From<()> for WidgetNode
 
impl From<()> for WidgetNode
Source§impl From<AreaBoxNode> for WidgetNode
 
impl From<AreaBoxNode> for WidgetNode
Source§fn from(data: AreaBoxNode) -> Self
 
fn from(data: AreaBoxNode) -> Self
Converts to this type from the input type.
Source§impl From<ContentBoxNode> for WidgetNode
 
impl From<ContentBoxNode> for WidgetNode
Source§fn from(data: ContentBoxNode) -> Self
 
fn from(data: ContentBoxNode) -> Self
Converts to this type from the input type.
Source§impl From<FlexBoxNode> for WidgetNode
 
impl From<FlexBoxNode> for WidgetNode
Source§fn from(data: FlexBoxNode) -> Self
 
fn from(data: FlexBoxNode) -> Self
Converts to this type from the input type.
Source§impl From<GridBoxNode> for WidgetNode
 
impl From<GridBoxNode> for WidgetNode
Source§fn from(data: GridBoxNode) -> Self
 
fn from(data: GridBoxNode) -> Self
Converts to this type from the input type.
Source§impl From<ImageBoxNode> for WidgetNode
 
impl From<ImageBoxNode> for WidgetNode
Source§fn from(data: ImageBoxNode) -> Self
 
fn from(data: ImageBoxNode) -> Self
Converts to this type from the input type.
Source§impl From<PortalBoxNode> for WidgetNode
 
impl From<PortalBoxNode> for WidgetNode
Source§fn from(data: PortalBoxNode) -> Self
 
fn from(data: PortalBoxNode) -> Self
Converts to this type from the input type.
Source§impl From<SizeBoxNode> for WidgetNode
 
impl From<SizeBoxNode> for WidgetNode
Source§fn from(data: SizeBoxNode) -> Self
 
fn from(data: SizeBoxNode) -> Self
Converts to this type from the input type.
Source§impl From<TextBoxNode> for WidgetNode
 
impl From<TextBoxNode> for WidgetNode
Source§fn from(data: TextBoxNode) -> Self
 
fn from(data: TextBoxNode) -> Self
Converts to this type from the input type.
Source§impl From<WidgetComponent> for WidgetNode
 
impl From<WidgetComponent> for WidgetNode
Source§fn from(component: WidgetComponent) -> Self
 
fn from(component: WidgetComponent) -> Self
Converts to this type from the input type.
Source§impl From<WidgetUnitNode> for Box<WidgetNode>
 
impl From<WidgetUnitNode> for Box<WidgetNode>
Source§fn from(unit: WidgetUnitNode) -> Self
 
fn from(unit: WidgetUnitNode) -> Self
Converts to this type from the input type.
Source§impl From<WidgetUnitNode> for WidgetNode
 
impl From<WidgetUnitNode> for WidgetNode
Source§fn from(unit: WidgetUnitNode) -> Self
 
fn from(unit: WidgetUnitNode) -> Self
Converts to this type from the input type.
Source§impl TryFrom<WidgetNode> for WidgetComponent
 
impl TryFrom<WidgetNode> for WidgetComponent
Source§impl TryFrom<WidgetNode> for WidgetUnit
 
impl TryFrom<WidgetNode> for WidgetUnit
Source§impl TryFrom<WidgetNode> for WidgetUnitNode
 
impl TryFrom<WidgetNode> for WidgetUnitNode
Auto Trait Implementations§
impl Freeze for WidgetNode
impl !RefUnwindSafe for WidgetNode
impl Send for WidgetNode
impl Sync for WidgetNode
impl Unpin for WidgetNode
impl !UnwindSafe for WidgetNode
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