#[repr(u32)]pub enum GpuJustifyMode {
Start = 0,
Center = 1,
End = 2,
SpaceBetween = 3,
}Expand description
Main-axis justification mode encoded in GpuLayoutNodeInput::flags_kind (bits[4..7]).
Variants§
Start = 0
Pack items at main-axis start.
Center = 1
Center items along main axis.
End = 2
Pack items at main-axis end.
SpaceBetween = 3
Distribute remaining space evenly between items.
Trait Implementations§
Source§impl Clone for GpuJustifyMode
impl Clone for GpuJustifyMode
impl Copy for GpuJustifyMode
Source§impl Debug for GpuJustifyMode
impl Debug for GpuJustifyMode
Source§impl Default for GpuJustifyMode
impl Default for GpuJustifyMode
impl Eq for GpuJustifyMode
Source§impl Hash for GpuJustifyMode
impl Hash for GpuJustifyMode
Source§impl Ord for GpuJustifyMode
impl Ord for GpuJustifyMode
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for GpuJustifyMode
impl PartialEq for GpuJustifyMode
Source§impl PartialOrd for GpuJustifyMode
impl PartialOrd for GpuJustifyMode
impl StructuralPartialEq for GpuJustifyMode
Auto Trait Implementations§
impl Forget for GpuJustifyMode
impl Freeze for GpuJustifyMode
impl Move for GpuJustifyMode
impl RefUnwindSafe for GpuJustifyMode
impl Send for GpuJustifyMode
impl Sync for GpuJustifyMode
impl Unpin for GpuJustifyMode
impl UnsafeUnpin for GpuJustifyMode
impl UnwindSafe for GpuJustifyMode
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