Struct amethyst_renderer::Blend [−]
pub struct Blend { pub color: BlendChannel, pub alpha: BlendChannel, }
Fields
color: BlendChannel
alpha: BlendChannel
Methods
impl Blend
impl Blend
pub fn new(eq: Equation, src: Factor, dst: Factor) -> Blend
pub fn new(eq: Equation, src: Factor, dst: Factor) -> Blend
Create a new blend state with a given equation.
Trait Implementations
impl PartialOrd<Blend> for Blend
impl PartialOrd<Blend> for Blend
fn partial_cmp(&self, other: &Blend) -> Option<Ordering>
fn partial_cmp(&self, other: &Blend) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Blend) -> bool
fn lt(&self, other: &Blend) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Blend) -> bool
fn le(&self, other: &Blend) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Blend) -> bool
fn gt(&self, other: &Blend) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Blend) -> bool
fn ge(&self, other: &Blend) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Hash for Blend
impl Hash for Blend
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for Blend
impl Clone for Blend
fn clone(&self) -> Blend
fn clone(&self) -> Blend
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Blend
impl Debug for Blend
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Serialize for Blend
impl Serialize for Blend
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Default for Blend
impl Default for Blend
impl Copy for Blend
impl Copy for Blend
impl Eq for Blend
impl Eq for Blend
impl PartialEq<Blend> for Blend
impl PartialEq<Blend> for Blend
fn eq(&self, other: &Blend) -> bool
fn eq(&self, other: &Blend) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Blend) -> bool
fn ne(&self, other: &Blend) -> bool
This method tests for !=
.
impl<'de> Deserialize<'de> for Blend
impl<'de> Deserialize<'de> for Blend
fn deserialize<__D>(
__deserializer: __D
) -> Result<Blend, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Blend, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl From<Blend> for ColorInfo
[src]
impl From<Blend> for ColorInfo