pub struct LayoutConstraintLocality {
pub min_width: bool,
pub max_width: bool,
pub min_height: bool,
pub max_height: bool,
pub preferred_width: bool,
pub preferred_height: bool,
pub horizontal_stretch: bool,
pub vertical_stretch: bool,
}Expand description
Which LayoutConstraints are set directly on the element (depth 0) rather
than inherited from a base component.
Fields§
§min_width: bool§max_width: bool§min_height: bool§max_height: bool§preferred_width: bool§preferred_height: bool§horizontal_stretch: bool§vertical_stretch: boolTrait Implementations§
Source§impl Clone for LayoutConstraintLocality
impl Clone for LayoutConstraintLocality
Source§fn clone(&self) -> LayoutConstraintLocality
fn clone(&self) -> LayoutConstraintLocality
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 LayoutConstraintLocality
impl Debug for LayoutConstraintLocality
Source§impl Default for LayoutConstraintLocality
impl Default for LayoutConstraintLocality
Source§fn default() -> LayoutConstraintLocality
fn default() -> LayoutConstraintLocality
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LayoutConstraintLocality
impl RefUnwindSafe for LayoutConstraintLocality
impl Send for LayoutConstraintLocality
impl Sync for LayoutConstraintLocality
impl Unpin for LayoutConstraintLocality
impl UnsafeUnpin for LayoutConstraintLocality
impl UnwindSafe for LayoutConstraintLocality
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more