#[repr(C)]pub struct TransformPaletteId(pub u32);Tuple Fields§
§0: u32Implementations§
Source§impl TransformPaletteId
 
impl TransformPaletteId
Sourcepub fn transform_kind(&self) -> TransformedRectKind
 
pub fn transform_kind(&self) -> TransformedRectKind
Extract the transform kind from the id.
Sourcepub fn override_transform_kind(&self, kind: TransformedRectKind) -> Self
 
pub fn override_transform_kind(&self, kind: TransformedRectKind) -> Self
Override the kind of transform stored in this id. This can be useful in cases where we don’t want shaders to consider certain transforms axis- aligned (i.e. perspective warp) even though we may still want to for the general case.
Trait Implementations§
Source§impl Clone for TransformPaletteId
 
impl Clone for TransformPaletteId
Source§fn clone(&self) -> TransformPaletteId
 
fn clone(&self) -> TransformPaletteId
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for TransformPaletteId
 
impl Debug for TransformPaletteId
Source§impl PartialEq for TransformPaletteId
 
impl PartialEq for TransformPaletteId
Source§impl Serialize for TransformPaletteId
 
impl Serialize for TransformPaletteId
impl Copy for TransformPaletteId
impl StructuralPartialEq for TransformPaletteId
Auto Trait Implementations§
impl Freeze for TransformPaletteId
impl RefUnwindSafe for TransformPaletteId
impl Send for TransformPaletteId
impl Sync for TransformPaletteId
impl Unpin for TransformPaletteId
impl UnwindSafe for TransformPaletteId
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more