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
sourceimpl Clone for WidgetUnitNode
impl Clone for WidgetUnitNode
sourcefn clone(&self) -> WidgetUnitNode
fn clone(&self) -> WidgetUnitNode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for WidgetUnitNode
impl Debug for WidgetUnitNode
sourceimpl Default for WidgetUnitNode
impl Default for WidgetUnitNode
sourcefn default() -> WidgetUnitNode
fn default() -> WidgetUnitNode
Returns the “default value” for a type. Read more
sourceimpl From<()> for WidgetUnitNode
impl From<()> for WidgetUnitNode
sourcefn from(()) -> WidgetUnitNode
fn from(()) -> WidgetUnitNode
Converts to this type from the input type.
sourceimpl From<AreaBoxNode> for WidgetUnitNode
impl From<AreaBoxNode> for WidgetUnitNode
sourcefn from(unit: AreaBoxNode) -> WidgetUnitNode
fn from(unit: AreaBoxNode) -> WidgetUnitNode
Converts to this type from the input type.
sourceimpl From<ContentBoxNode> for WidgetUnitNode
impl From<ContentBoxNode> for WidgetUnitNode
sourcefn from(unit: ContentBoxNode) -> WidgetUnitNode
fn from(unit: ContentBoxNode) -> WidgetUnitNode
Converts to this type from the input type.
sourceimpl From<FlexBoxNode> for WidgetUnitNode
impl From<FlexBoxNode> for WidgetUnitNode
sourcefn from(unit: FlexBoxNode) -> WidgetUnitNode
fn from(unit: FlexBoxNode) -> WidgetUnitNode
Converts to this type from the input type.
sourceimpl From<GridBoxNode> for WidgetUnitNode
impl From<GridBoxNode> for WidgetUnitNode
sourcefn from(unit: GridBoxNode) -> WidgetUnitNode
fn from(unit: GridBoxNode) -> WidgetUnitNode
Converts to this type from the input type.
sourceimpl From<ImageBoxNode> for WidgetUnitNode
impl From<ImageBoxNode> for WidgetUnitNode
sourcefn from(unit: ImageBoxNode) -> WidgetUnitNode
fn from(unit: ImageBoxNode) -> WidgetUnitNode
Converts to this type from the input type.
sourceimpl From<PortalBoxNode> for WidgetUnitNode
impl From<PortalBoxNode> for WidgetUnitNode
sourcefn from(unit: PortalBoxNode) -> WidgetUnitNode
fn from(unit: PortalBoxNode) -> WidgetUnitNode
Converts to this type from the input type.
sourceimpl From<SizeBoxNode> for WidgetUnitNode
impl From<SizeBoxNode> for WidgetUnitNode
sourcefn from(unit: SizeBoxNode) -> WidgetUnitNode
fn from(unit: SizeBoxNode) -> WidgetUnitNode
Converts to this type from the input type.
sourceimpl From<TextBoxNode> for WidgetUnitNode
impl From<TextBoxNode> for WidgetUnitNode
sourcefn from(unit: TextBoxNode) -> WidgetUnitNode
fn from(unit: TextBoxNode) -> WidgetUnitNode
Converts to this type from the input type.
sourceimpl From<WidgetUnitNode> for WidgetNode
impl From<WidgetUnitNode> for WidgetNode
sourcefn from(unit: WidgetUnitNode) -> WidgetNode
fn from(unit: WidgetUnitNode) -> WidgetNode
Converts to this type from the input type.
sourceimpl TryFrom<WidgetNode> for WidgetUnitNode
impl TryFrom<WidgetNode> for WidgetUnitNode
sourcefn 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.
sourceimpl TryFrom<WidgetUnitNode> for WidgetUnit
impl TryFrom<WidgetUnitNode> for WidgetUnit
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more