pub enum MaterialVariant {
Core,
Image,
Mesh,
Shape,
Pass,
Runtime,
}Expand description
Which arm of the built-in shader a material is drawn by.
Variants§
Core
A solid color, a gradient or a glyph: what every variant carries.
Image
Mesh
Shape
Rounded rectangles, ellipses, a rounded rectangle’s blur, point fields and shadow meshes.
Pass
A blur or a morphology pass.
Runtime
A caller’s program, which replaces the built-in fragment stage.
Trait Implementations§
Source§impl Clone for MaterialVariant
impl Clone for MaterialVariant
Source§fn clone(&self) -> MaterialVariant
fn clone(&self) -> MaterialVariant
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 MaterialVariant
Source§impl Debug for MaterialVariant
impl Debug for MaterialVariant
impl Eq for MaterialVariant
Source§impl Hash for MaterialVariant
impl Hash for MaterialVariant
Source§impl PartialEq for MaterialVariant
impl PartialEq for MaterialVariant
impl StructuralPartialEq for MaterialVariant
Auto Trait Implementations§
impl Forget for MaterialVariant
impl Freeze for MaterialVariant
impl Move for MaterialVariant
impl RefUnwindSafe for MaterialVariant
impl Send for MaterialVariant
impl Sync for MaterialVariant
impl Unpin for MaterialVariant
impl UnsafeUnpin for MaterialVariant
impl UnwindSafe for MaterialVariant
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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