Struct webrender::gpu_types::TransformPaletteId
source · #[repr(C)]pub struct TransformPaletteId(pub u32);
Tuple Fields§
§0: u32
Implementations§
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 copy 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§fn eq(&self, other: &TransformPaletteId) -> bool
fn eq(&self, other: &TransformPaletteId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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> 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