pub enum AlphaMode {
Opaque,
Mask {
cutoff: f32,
},
Blend,
Premultiplied,
}Variants§
Opaque
Mask
Alpha tested: fragments with alpha < cutoff are discarded.
Blend
Alpha blended (order-dependent).
Premultiplied
Premultiplied alpha blending.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AlphaMode
impl<'de> Deserialize<'de> for AlphaMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for AlphaMode
impl StructuralPartialEq for AlphaMode
Auto Trait Implementations§
impl Freeze for AlphaMode
impl RefUnwindSafe for AlphaMode
impl Send for AlphaMode
impl Sync for AlphaMode
impl Unpin for AlphaMode
impl UnsafeUnpin for AlphaMode
impl UnwindSafe for AlphaMode
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