pub enum WidgetUnit {
None,
AreaBox(AreaBox),
PortalBox(PortalBox),
ContentBox(ContentBox),
FlexBox(FlexBox),
GridBox(GridBox),
SizeBox(SizeBox),
ImageBox(ImageBox),
TextBox(TextBox),
}
Variants§
None
AreaBox(AreaBox)
PortalBox(PortalBox)
ContentBox(ContentBox)
FlexBox(FlexBox)
GridBox(GridBox)
SizeBox(SizeBox)
ImageBox(ImageBox)
TextBox(TextBox)
Implementations§
Trait Implementations§
source§impl Clone for WidgetUnit
impl Clone for WidgetUnit
source§fn clone(&self) -> WidgetUnit
fn clone(&self) -> WidgetUnit
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 WidgetUnit
impl Debug for WidgetUnit
source§impl Default for WidgetUnit
impl Default for WidgetUnit
source§fn default() -> WidgetUnit
fn default() -> WidgetUnit
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for WidgetUnit
impl<'de> Deserialize<'de> for WidgetUnit
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Renderer<WidgetUnit, ()> for RawRenderer
impl Renderer<WidgetUnit, ()> for RawRenderer
fn render( &mut self, tree: &WidgetUnit, _: &CoordsMapping, _: &Layout, ) -> Result<WidgetUnit, ()>
source§impl Serialize for WidgetUnit
impl Serialize for WidgetUnit
source§impl TryFrom<WidgetNode> for WidgetUnit
impl TryFrom<WidgetNode> for WidgetUnit
source§impl TryFrom<WidgetUnitNode> for WidgetUnit
impl TryFrom<WidgetUnitNode> for WidgetUnit
Auto Trait Implementations§
impl Freeze for WidgetUnit
impl RefUnwindSafe for WidgetUnit
impl Send for WidgetUnit
impl Sync for WidgetUnit
impl Unpin for WidgetUnit
impl UnwindSafe for WidgetUnit
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)