Enum oxygengine_user_interface::widget::node::WidgetNode
source · [−]pub enum WidgetNode {
None,
Component(WidgetComponent),
Unit(WidgetUnitNode),
Tuple(Vec<WidgetNode, Global>),
}
Variants
None
Component(WidgetComponent)
Unit(WidgetUnitNode)
Tuple(Vec<WidgetNode, Global>)
Implementations
sourceimpl 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)where
F: FnMut(Props) -> Props,
pub fn pack_tuple<const N: usize>(data: [WidgetNode; N]) -> WidgetNode
pub fn unpack_tuple<const N: usize>(self) -> [WidgetNode; N]
Trait Implementations
sourceimpl Clone for WidgetNode
impl Clone for WidgetNode
sourcefn clone(&self) -> WidgetNode
fn clone(&self) -> WidgetNode
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 WidgetNode
impl Debug for WidgetNode
sourceimpl Default for WidgetNode
impl Default for WidgetNode
sourcefn default() -> WidgetNode
fn default() -> WidgetNode
Returns the “default value” for a type. Read more
sourceimpl<const N: usize> From<[WidgetNode; N]> for WidgetNode
impl<const N: usize> From<[WidgetNode; N]> for WidgetNode
sourcefn from(data: [WidgetNode; N]) -> WidgetNode
fn from(data: [WidgetNode; N]) -> WidgetNode
Converts to this type from the input type.
sourceimpl From<()> for WidgetNode
impl From<()> for WidgetNode
sourcefn from(()) -> WidgetNode
fn from(()) -> WidgetNode
Converts to this type from the input type.
sourceimpl From<AreaBoxNode> for WidgetNode
impl From<AreaBoxNode> for WidgetNode
sourcefn from(data: AreaBoxNode) -> WidgetNode
fn from(data: AreaBoxNode) -> WidgetNode
Converts to this type from the input type.
sourceimpl From<ContentBoxNode> for WidgetNode
impl From<ContentBoxNode> for WidgetNode
sourcefn from(data: ContentBoxNode) -> WidgetNode
fn from(data: ContentBoxNode) -> WidgetNode
Converts to this type from the input type.
sourceimpl From<FlexBoxNode> for WidgetNode
impl From<FlexBoxNode> for WidgetNode
sourcefn from(data: FlexBoxNode) -> WidgetNode
fn from(data: FlexBoxNode) -> WidgetNode
Converts to this type from the input type.
sourceimpl From<GridBoxNode> for WidgetNode
impl From<GridBoxNode> for WidgetNode
sourcefn from(data: GridBoxNode) -> WidgetNode
fn from(data: GridBoxNode) -> WidgetNode
Converts to this type from the input type.
sourceimpl From<ImageBoxNode> for WidgetNode
impl From<ImageBoxNode> for WidgetNode
sourcefn from(data: ImageBoxNode) -> WidgetNode
fn from(data: ImageBoxNode) -> WidgetNode
Converts to this type from the input type.
sourceimpl From<PortalBoxNode> for WidgetNode
impl From<PortalBoxNode> for WidgetNode
sourcefn from(data: PortalBoxNode) -> WidgetNode
fn from(data: PortalBoxNode) -> WidgetNode
Converts to this type from the input type.
sourceimpl From<SizeBoxNode> for WidgetNode
impl From<SizeBoxNode> for WidgetNode
sourcefn from(data: SizeBoxNode) -> WidgetNode
fn from(data: SizeBoxNode) -> WidgetNode
Converts to this type from the input type.
sourceimpl From<TextBoxNode> for WidgetNode
impl From<TextBoxNode> for WidgetNode
sourcefn from(data: TextBoxNode) -> WidgetNode
fn from(data: TextBoxNode) -> WidgetNode
Converts to this type from the input type.
sourceimpl From<WidgetComponent> for WidgetNode
impl From<WidgetComponent> for WidgetNode
sourcefn from(component: WidgetComponent) -> WidgetNode
fn from(component: WidgetComponent) -> WidgetNode
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 WidgetComponent
impl TryFrom<WidgetNode> for WidgetComponent
sourcefn try_from(
node: WidgetNode
) -> Result<WidgetComponent, <WidgetComponent as TryFrom<WidgetNode>>::Error>
fn try_from(
node: WidgetNode
) -> Result<WidgetComponent, <WidgetComponent as TryFrom<WidgetNode>>::Error>
Performs the conversion.
sourceimpl TryFrom<WidgetNode> for WidgetUnit
impl TryFrom<WidgetNode> for WidgetUnit
sourcefn try_from(
node: WidgetNode
) -> Result<WidgetUnit, <WidgetUnit as TryFrom<WidgetNode>>::Error>
fn try_from(
node: WidgetNode
) -> Result<WidgetUnit, <WidgetUnit as TryFrom<WidgetNode>>::Error>
Performs the conversion.
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.
Auto Trait Implementations
impl !RefUnwindSafe for WidgetNode
impl Send for WidgetNode
impl Sync for WidgetNode
impl Unpin for WidgetNode
impl !UnwindSafe for WidgetNode
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