pub struct RectLayout {Show 18 fields
pub surface: Option<Surface>,
pub width: Length,
pub height: Length,
pub min_width: u32,
pub min_height: u32,
pub max_width: Option<u32>,
pub max_height: Option<u32>,
pub fill: u32,
pub direction: Direction,
pub align: Align,
pub justify: Align,
pub overflow: Overflow,
pub position: Position,
pub inset: Inset,
pub padding: Spacing,
pub gap: u32,
pub style: Style,
pub content: Option<Content>,
}Fields§
§surface: Option<Surface>§width: Length§height: Length§min_width: u32§min_height: u32§max_width: Option<u32>§max_height: Option<u32>§fill: u32§direction: Direction§align: Align§justify: Align§overflow: Overflow§position: Position§inset: Inset§padding: Spacing§gap: u32§style: Style§content: Option<Content>Trait Implementations§
Source§impl Clone for RectLayout
impl Clone for RectLayout
Source§fn clone(&self) -> RectLayout
fn clone(&self) -> RectLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RectLayout
impl Debug for RectLayout
Source§impl Default for RectLayout
impl Default for RectLayout
Source§impl PartialEq for RectLayout
impl PartialEq for RectLayout
Source§fn eq(&self, other: &RectLayout) -> bool
fn eq(&self, other: &RectLayout) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RectLayout
Auto Trait Implementations§
impl !RefUnwindSafe for RectLayout
impl !UnwindSafe for RectLayout
impl Freeze for RectLayout
impl Send for RectLayout
impl Sync for RectLayout
impl Unpin for RectLayout
impl UnsafeUnpin for RectLayout
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§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.