pub enum Horizontal {
Left,
Right,
Center,
LeftRight,
Scale,
}
Expand description
Horizontal constraint (relative to containing frame) as an enum: - LEFT
: Node is laid out relative to left of the containing frame - RIGHT
: Node is laid out relative to right of the containing frame - CENTER
: Node is horizontally centered relative to containing frame - LEFT_RIGHT
: Both left and right of node are constrained relative to containing frame (node stretches with frame) - SCALE
: Node scales horizontally with containing frame
Variants§
Trait Implementations§
Source§impl Clone for Horizontal
impl Clone for Horizontal
Source§fn clone(&self) -> Horizontal
fn clone(&self) -> Horizontal
Returns a duplicate 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 Horizontal
impl Debug for Horizontal
Source§impl Default for Horizontal
impl Default for Horizontal
Source§fn default() -> Horizontal
fn default() -> Horizontal
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Horizontal
impl<'de> Deserialize<'de> for Horizontal
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 Hash for Horizontal
impl Hash for Horizontal
Source§impl Ord for Horizontal
impl Ord for Horizontal
Source§fn cmp(&self, other: &Horizontal) -> Ordering
fn cmp(&self, other: &Horizontal) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Horizontal
impl PartialEq for Horizontal
Source§impl PartialOrd for Horizontal
impl PartialOrd for Horizontal
Source§impl Serialize for Horizontal
impl Serialize for Horizontal
impl Copy for Horizontal
impl Eq for Horizontal
impl StructuralPartialEq for Horizontal
Auto Trait Implementations§
impl Freeze for Horizontal
impl RefUnwindSafe for Horizontal
impl Send for Horizontal
impl Sync for Horizontal
impl Unpin for Horizontal
impl UnwindSafe for Horizontal
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.