pub enum GridOrigin {
TopLeft,
TopRight,
BottomLeft,
BottomRight,
Center,
Top,
Bottom,
Left,
Right,
}Expand description
Origin used by grid-based stagger patterns.
Variants§
TopLeft
Top-left cell starts first.
TopRight
Top-right cell starts first.
BottomLeft
Bottom-left cell starts first.
BottomRight
Bottom-right cell starts first.
Center
Center cell or center cells start first.
Top
Top edge starts first.
Bottom
Bottom edge starts first.
Left
Left edge starts first.
Right
Right edge starts first.
Trait Implementations§
Source§impl Clone for GridOrigin
impl Clone for GridOrigin
Source§fn clone(&self) -> GridOrigin
fn clone(&self) -> GridOrigin
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 GridOrigin
Source§impl Debug for GridOrigin
impl Debug for GridOrigin
impl Eq for GridOrigin
Source§impl PartialEq for GridOrigin
impl PartialEq for GridOrigin
Source§fn eq(&self, other: &GridOrigin) -> bool
fn eq(&self, other: &GridOrigin) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GridOrigin
Auto Trait Implementations§
impl Freeze for GridOrigin
impl RefUnwindSafe for GridOrigin
impl Send for GridOrigin
impl Sync for GridOrigin
impl Unpin for GridOrigin
impl UnsafeUnpin for GridOrigin
impl UnwindSafe for GridOrigin
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