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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)