#[repr(u8)]pub enum PlaneComponents {
One = 1,
Two = 2,
Three = 3,
Four = 4,
}Expand description
Validated interleaved component count (1..=4) for variable-arity plane roles
(PlaneRole::Packed and PlaneRole::Extra).
Makes 0 or > 4 components unrepresentable at compile time while keeping
PlaneFormat 16 bytes (zero wasted alignment padding inside PlaneView).
Variants§
One = 1
1 component per element.
Two = 2
2 interleaved components per element.
Three = 3
3 interleaved components per element.
Four = 4
4 interleaved components per element.
Implementations§
Trait Implementations§
Source§impl Clone for PlaneComponents
impl Clone for PlaneComponents
Source§fn clone(&self) -> PlaneComponents
fn clone(&self) -> PlaneComponents
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 PlaneComponents
Source§impl Debug for PlaneComponents
impl Debug for PlaneComponents
Source§impl Default for PlaneComponents
impl Default for PlaneComponents
Source§fn default() -> PlaneComponents
fn default() -> PlaneComponents
Returns the “default value” for a type. Read more
impl Eq for PlaneComponents
Source§impl Hash for PlaneComponents
impl Hash for PlaneComponents
Source§impl PartialEq for PlaneComponents
impl PartialEq for PlaneComponents
impl StructuralPartialEq for PlaneComponents
Auto Trait Implementations§
impl Freeze for PlaneComponents
impl RefUnwindSafe for PlaneComponents
impl Send for PlaneComponents
impl Sync for PlaneComponents
impl Unpin for PlaneComponents
impl UnsafeUnpin for PlaneComponents
impl UnwindSafe for PlaneComponents
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