enum Components {
Single(u32),
Swizzle {
size: VectorSize,
pattern: [SwizzleComponent; 4],
},
}Expand description
A single vector component or swizzle.
This represents the things that can appear after the . in a vector access
expression: either a single component name, or a series of them,
representing a swizzle.
Variants§
Implementations§
Source§impl Components
impl Components
const fn letter_component(letter: char) -> Option<SwizzleComponent>
fn single_component(name: &str, name_span: Span) -> Result<u32, Box<Error<'_>>>
Auto Trait Implementations§
impl Freeze for Components
impl RefUnwindSafe for Components
impl Send for Components
impl Sync for Components
impl Unpin for Components
impl UnsafeUnpin for Components
impl UnwindSafe for Components
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