Enum oxygengine_user_interface::widget::unit::WidgetUnit [−][src]
pub enum WidgetUnit { None, AreaBox(AreaBox), PortalBox(PortalBox), ContentBox(ContentBox), FlexBox(FlexBox), GridBox(GridBox), SizeBox(SizeBox), ImageBox(ImageBox), TextBox(TextBox), }
Variants
AreaBox(AreaBox)
PortalBox(PortalBox)
ContentBox(ContentBox)
FlexBox(FlexBox)
GridBox(GridBox)
SizeBox(SizeBox)
ImageBox(ImageBox)
TextBox(TextBox)
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<WidgetUnit, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<WidgetUnit, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
pub fn render(
&mut self,
tree: &WidgetUnit,
&CoordsMapping,
&Layout
) -> Result<WidgetUnit, ()>
[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]Serialize this value into the given Serde serializer. Read more
pub fn try_from(
node: WidgetNode
) -> Result<WidgetUnit, <WidgetUnit as TryFrom<WidgetNode>>::Error>
[src]
pub fn try_from(
node: WidgetNode
) -> Result<WidgetUnit, <WidgetUnit as TryFrom<WidgetNode>>::Error>
[src]Performs the conversion.
pub fn try_from(
node: WidgetUnitNode
) -> Result<WidgetUnit, <WidgetUnit as TryFrom<WidgetUnitNode>>::Error>
[src]
pub fn try_from(
node: WidgetUnitNode
) -> Result<WidgetUnit, <WidgetUnit as TryFrom<WidgetUnitNode>>::Error>
[src]Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for WidgetUnit
impl Send for WidgetUnit
impl Sync for WidgetUnit
impl Unpin for WidgetUnit
impl UnwindSafe for WidgetUnit
Blanket Implementations
impl<T> Any for T where
T: Any,
impl<T> Any for T where
T: Any,
pub fn get_type_id(&self) -> TypeId
Mutably borrows from an owned value. Read more
impl<T> TryDefault for T where
T: Default,
impl<T> TryDefault for T where
T: Default,
pub fn try_default() -> Result<T, String>
pub fn try_default() -> Result<T, String>
Tries to create the default.
fn unwrap_default() -> Self
fn unwrap_default() -> Self
Calls try_default
and panics on an error case.