pub enum WidgetUnitNode {
None,
AreaBox(AreaBoxNode),
PortalBox(PortalBoxNode),
ContentBox(ContentBoxNode),
FlexBox(FlexBoxNode),
GridBox(GridBoxNode),
SizeBox(SizeBoxNode),
ImageBox(ImageBoxNode),
TextBox(TextBoxNode),
}
Variants§
None
AreaBox(AreaBoxNode)
PortalBox(PortalBoxNode)
ContentBox(ContentBoxNode)
FlexBox(FlexBoxNode)
GridBox(GridBoxNode)
SizeBox(SizeBoxNode)
ImageBox(ImageBoxNode)
TextBox(TextBoxNode)
Implementations§
Trait Implementations§
source§impl Clone for WidgetUnitNode
impl Clone for WidgetUnitNode
source§fn clone(&self) -> WidgetUnitNode
fn clone(&self) -> WidgetUnitNode
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 WidgetUnitNode
impl Debug for WidgetUnitNode
source§impl Default for WidgetUnitNode
impl Default for WidgetUnitNode
source§fn default() -> WidgetUnitNode
fn default() -> WidgetUnitNode
Returns the “default value” for a type. Read more
source§impl From<()> for WidgetUnitNode
impl From<()> for WidgetUnitNode
source§fn from(_: ()) -> WidgetUnitNode
fn from(_: ()) -> WidgetUnitNode
Converts to this type from the input type.
source§impl From<AreaBoxNode> for WidgetUnitNode
impl From<AreaBoxNode> for WidgetUnitNode
source§fn from(unit: AreaBoxNode) -> WidgetUnitNode
fn from(unit: AreaBoxNode) -> WidgetUnitNode
Converts to this type from the input type.
source§impl From<ContentBoxNode> for WidgetUnitNode
impl From<ContentBoxNode> for WidgetUnitNode
source§fn from(unit: ContentBoxNode) -> WidgetUnitNode
fn from(unit: ContentBoxNode) -> WidgetUnitNode
Converts to this type from the input type.
source§impl From<FlexBoxNode> for WidgetUnitNode
impl From<FlexBoxNode> for WidgetUnitNode
source§fn from(unit: FlexBoxNode) -> WidgetUnitNode
fn from(unit: FlexBoxNode) -> WidgetUnitNode
Converts to this type from the input type.
source§impl From<GridBoxNode> for WidgetUnitNode
impl From<GridBoxNode> for WidgetUnitNode
source§fn from(unit: GridBoxNode) -> WidgetUnitNode
fn from(unit: GridBoxNode) -> WidgetUnitNode
Converts to this type from the input type.
source§impl From<ImageBoxNode> for WidgetUnitNode
impl From<ImageBoxNode> for WidgetUnitNode
source§fn from(unit: ImageBoxNode) -> WidgetUnitNode
fn from(unit: ImageBoxNode) -> WidgetUnitNode
Converts to this type from the input type.
source§impl From<PortalBoxNode> for WidgetUnitNode
impl From<PortalBoxNode> for WidgetUnitNode
source§fn from(unit: PortalBoxNode) -> WidgetUnitNode
fn from(unit: PortalBoxNode) -> WidgetUnitNode
Converts to this type from the input type.
source§impl From<SizeBoxNode> for WidgetUnitNode
impl From<SizeBoxNode> for WidgetUnitNode
source§fn from(unit: SizeBoxNode) -> WidgetUnitNode
fn from(unit: SizeBoxNode) -> WidgetUnitNode
Converts to this type from the input type.
source§impl From<TextBoxNode> for WidgetUnitNode
impl From<TextBoxNode> for WidgetUnitNode
source§fn from(unit: TextBoxNode) -> WidgetUnitNode
fn from(unit: TextBoxNode) -> WidgetUnitNode
Converts to this type from the input type.
source§impl From<WidgetUnitNode> for WidgetNode
impl From<WidgetUnitNode> for WidgetNode
source§fn from(unit: WidgetUnitNode) -> WidgetNode
fn from(unit: WidgetUnitNode) -> WidgetNode
Converts to this type from the input type.
source§impl TryFrom<WidgetNode> for WidgetUnitNode
impl TryFrom<WidgetNode> for WidgetUnitNode
source§fn try_from(
node: WidgetNode
) -> Result<WidgetUnitNode, <WidgetUnitNode as TryFrom<WidgetNode>>::Error>
fn try_from( node: WidgetNode ) -> Result<WidgetUnitNode, <WidgetUnitNode as TryFrom<WidgetNode>>::Error>
Performs the conversion.
source§impl TryFrom<WidgetUnitNode> for WidgetUnit
impl TryFrom<WidgetUnitNode> for WidgetUnit
source§fn try_from(
node: WidgetUnitNode
) -> Result<WidgetUnit, <WidgetUnit as TryFrom<WidgetUnitNode>>::Error>
fn try_from( node: WidgetUnitNode ) -> Result<WidgetUnit, <WidgetUnit as TryFrom<WidgetUnitNode>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl !RefUnwindSafe for WidgetUnitNode
impl Send for WidgetUnitNode
impl Sync for WidgetUnitNode
impl Unpin for WidgetUnitNode
impl !UnwindSafe for WidgetUnitNode
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