pub enum LinearLayoutGravity {
None,
Start,
End,
Center,
Stretch,
}Expand description
The linear-layout-gravity keyword. Lynx-specific per-child
override for cross-axis alignment.
Variants§
None
none — defer to parent’s linear-cross-gravity. Default.
Start
start — align to the cross-axis start.
End
end — align to the cross-axis end.
Center
center — center along the cross axis.
Stretch
stretch — stretch across the cross axis.
Trait Implementations§
Source§impl Clone for LinearLayoutGravity
impl Clone for LinearLayoutGravity
Source§fn clone(&self) -> LinearLayoutGravity
fn clone(&self) -> LinearLayoutGravity
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 moreimpl Copy for LinearLayoutGravity
Source§impl Debug for LinearLayoutGravity
impl Debug for LinearLayoutGravity
impl Eq for LinearLayoutGravity
Source§impl Hash for LinearLayoutGravity
impl Hash for LinearLayoutGravity
Source§impl PartialEq for LinearLayoutGravity
impl PartialEq for LinearLayoutGravity
Source§fn eq(&self, other: &LinearLayoutGravity) -> bool
fn eq(&self, other: &LinearLayoutGravity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LinearLayoutGravity
Auto Trait Implementations§
impl Freeze for LinearLayoutGravity
impl RefUnwindSafe for LinearLayoutGravity
impl Send for LinearLayoutGravity
impl Sync for LinearLayoutGravity
impl Unpin for LinearLayoutGravity
impl UnsafeUnpin for LinearLayoutGravity
impl UnwindSafe for LinearLayoutGravity
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