pub enum BlendFactor {
Zero,
One,
Value(BlendValue),
OneMinusValue(BlendValue),
SourceAlphaSaturate,
}Expand description
Blend factors.
Variants§
Trait Implementations§
Source§impl Clone for BlendFactor
impl Clone for BlendFactor
Source§fn clone(&self) -> BlendFactor
fn clone(&self) -> BlendFactor
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 BlendFactor
Source§impl Debug for BlendFactor
impl Debug for BlendFactor
Source§impl<'de> Deserialize<'de> for BlendFactor
impl<'de> Deserialize<'de> for BlendFactor
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 Eq for BlendFactor
Source§impl IoLoad for BlendFactor
impl IoLoad for BlendFactor
Source§fn load_own_extensions() -> impl Iterator<Item = &'static str>
fn load_own_extensions() -> impl Iterator<Item = &'static str>
fn load_from_bytes_with_own_extension( data: &[u8], path: &str, extension: &str, ) -> Result<Self, IoError>
fn load_from_bytes_with_own_extension_pathless( data: &[u8], extension: &str, ) -> Result<Self, IoErrorKind>
const CAN_BE_LOADED_FROM_TEXT: bool = false
fn load_from_str_with_own_extension( data: &str, path: &str, extension: &str, ) -> Result<Self, IoError>
fn load_from_str_with_own_extension_pathless( data: &str, extension: &str, ) -> Result<Self, IoErrorKind>
Source§fn can_open_own_extension(extension: &str) -> bool
fn can_open_own_extension(extension: &str) -> bool
Don’t include the markup language extension like
json or ronSource§fn load_extensions() -> impl Iterator<Item = &'static str>
fn load_extensions() -> impl Iterator<Item = &'static str>
Also include the markup language extension like
json or ronSource§fn can_open_extension(extension: &str) -> bool
fn can_open_extension(extension: &str) -> bool
Also include the markup language extension like
json or ronfn load_from<Fs>(path: &str, fs: &mut Fs) -> Result<Self, IoError>where
Fs: IoFsRead,
fn load_from_with_extension<Fs>(
path: &str,
extension: &str,
fs: &mut Fs,
) -> Result<Self, IoError>where
Fs: IoFsRead,
Source§impl IoSave for BlendFactor
impl IoSave for BlendFactor
Source§fn save_own_extensions() -> impl Iterator<Item = &'static str>
fn save_own_extensions() -> impl Iterator<Item = &'static str>
fn save_to_with_own_extension<W, Fs>( &self, path: &str, extension: &str, w: W, fs: &mut Fs, ) -> Result<(), IoError>
fn save_to_with_own_extension_pathless<W, Fs>( &self, extension: &str, w: W, fs: &mut Fs, ) -> Result<(), IoErrorKind>
Source§fn save_default_extension() -> Option<&'static str>
fn save_default_extension() -> Option<&'static str>
When saving, if the extension is missing, the file will use this extension by default
Source§fn can_save_own_extension(extension: &str) -> bool
fn can_save_own_extension(extension: &str) -> bool
Don’t include the markup language extension like
json or ronSource§fn save_extensions() -> impl Iterator<Item = &'static str>
fn save_extensions() -> impl Iterator<Item = &'static str>
Also include the markup language extension like
json or ronSource§fn can_save_extension(extension: &str) -> bool
fn can_save_extension(extension: &str) -> bool
Also include the markup language extension like
json or ronfn save_to<Fs>(&self, path: &str, fs: &mut Fs) -> Result<(), IoError>where
Fs: IoFsWrite,
fn save_to_with_extension<Fs>(
&self,
path: &str,
extension: &str,
fs: &mut Fs,
) -> Result<(), IoError>where
Fs: IoFsWrite,
fn save_with_reader<W, Fs>( &self, path: &str, w: W, fs: &mut Fs, ) -> Result<(), IoError>
fn save_with_reader_and_extension<W, Fs>( &self, path: &str, extension: &str, w: W, fs: &mut Fs, ) -> Result<(), IoError>
Source§impl PartialEq for BlendFactor
impl PartialEq for BlendFactor
Source§fn eq(&self, other: &BlendFactor) -> bool
fn eq(&self, other: &BlendFactor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BlendFactor
impl Serialize for BlendFactor
impl StructuralPartialEq for BlendFactor
Auto Trait Implementations§
impl Freeze for BlendFactor
impl RefUnwindSafe for BlendFactor
impl Send for BlendFactor
impl Sync for BlendFactor
impl Unpin for BlendFactor
impl UnsafeUnpin for BlendFactor
impl UnwindSafe for BlendFactor
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<Src, Dest> CastRangeFrom<Dest> for Srcwhere
Dest: CastRangeInto<Src>,
impl<Src, Dest> CastRangeFrom<Dest> for Srcwhere
Dest: CastRangeInto<Src>,
fn cast_range_from(value: Dest) -> Src
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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