Enum oxygengine_user_interface::widget::node::WidgetNode
source · pub enum WidgetNode {
None,
Component(WidgetComponent),
Unit(WidgetUnitNode),
Tuple(Vec<WidgetNode, Global>),
}
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)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§
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]) -> WidgetNode
fn from(data: [WidgetNode; N]) -> WidgetNode
Converts to this type from the input type.
source§impl From<()> for WidgetNode
impl From<()> for WidgetNode
source§fn from(_: ()) -> WidgetNode
fn from(_: ()) -> WidgetNode
Converts to this type from the input type.
source§impl From<AreaBoxNode> for WidgetNode
impl From<AreaBoxNode> for WidgetNode
source§fn from(data: AreaBoxNode) -> WidgetNode
fn from(data: AreaBoxNode) -> WidgetNode
Converts to this type from the input type.
source§impl From<ContentBoxNode> for WidgetNode
impl From<ContentBoxNode> for WidgetNode
source§fn from(data: ContentBoxNode) -> WidgetNode
fn from(data: ContentBoxNode) -> WidgetNode
Converts to this type from the input type.
source§impl From<FlexBoxNode> for WidgetNode
impl From<FlexBoxNode> for WidgetNode
source§fn from(data: FlexBoxNode) -> WidgetNode
fn from(data: FlexBoxNode) -> WidgetNode
Converts to this type from the input type.
source§impl From<GridBoxNode> for WidgetNode
impl From<GridBoxNode> for WidgetNode
source§fn from(data: GridBoxNode) -> WidgetNode
fn from(data: GridBoxNode) -> WidgetNode
Converts to this type from the input type.
source§impl From<ImageBoxNode> for WidgetNode
impl From<ImageBoxNode> for WidgetNode
source§fn from(data: ImageBoxNode) -> WidgetNode
fn from(data: ImageBoxNode) -> WidgetNode
Converts to this type from the input type.
source§impl From<PortalBoxNode> for WidgetNode
impl From<PortalBoxNode> for WidgetNode
source§fn from(data: PortalBoxNode) -> WidgetNode
fn from(data: PortalBoxNode) -> WidgetNode
Converts to this type from the input type.
source§impl From<SizeBoxNode> for WidgetNode
impl From<SizeBoxNode> for WidgetNode
source§fn from(data: SizeBoxNode) -> WidgetNode
fn from(data: SizeBoxNode) -> WidgetNode
Converts to this type from the input type.
source§impl From<TextBoxNode> for WidgetNode
impl From<TextBoxNode> for WidgetNode
source§fn from(data: TextBoxNode) -> WidgetNode
fn from(data: TextBoxNode) -> WidgetNode
Converts to this type from the input type.
source§impl From<WidgetComponent> for WidgetNode
impl From<WidgetComponent> for WidgetNode
source§fn from(component: WidgetComponent) -> WidgetNode
fn from(component: WidgetComponent) -> WidgetNode
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 WidgetComponent
impl TryFrom<WidgetNode> for WidgetComponent
source§fn 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.
source§impl TryFrom<WidgetNode> for WidgetUnit
impl TryFrom<WidgetNode> for WidgetUnit
source§fn 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.
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.
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§
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
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more