Enum ark_api::world::CombineMode
source · [−]#[repr(u32)]
#[non_exhaustive]
pub enum CombineMode {
Average,
Min,
Multiply,
Max,
}
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Average
Min
Multiply
Max
Trait Implementations
sourceimpl CheckedBitPattern for CombineMode
impl CheckedBitPattern for CombineMode
type Bits = u32
type Bits = u32
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
. Read more
sourcefn is_valid_bit_pattern(bits: &<CombineMode as CheckedBitPattern>::Bits) -> bool
fn is_valid_bit_pattern(bits: &<CombineMode as CheckedBitPattern>::Bits) -> bool
If this function returns true, then it must be valid to reinterpret bits
as &Self
. Read more
sourceimpl Clone for CombineMode
impl Clone for CombineMode
sourcefn clone(&self) -> CombineMode
fn clone(&self) -> CombineMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CombineMode
impl Debug for CombineMode
sourceimpl Hash for CombineMode
impl Hash for CombineMode
sourceimpl PartialEq<CombineMode> for CombineMode
impl PartialEq<CombineMode> for CombineMode
sourcefn eq(&self, other: &CombineMode) -> bool
fn eq(&self, other: &CombineMode) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl TryFrom<u32> for CombineMode
impl TryFrom<u32> for CombineMode
type Error = TryFromPrimitiveError<CombineMode>
type Error = TryFromPrimitiveError<CombineMode>
The type returned in the event of a conversion error.
sourcefn try_from(
number: u32
) -> Result<CombineMode, TryFromPrimitiveError<CombineMode>>
fn try_from(
number: u32
) -> Result<CombineMode, TryFromPrimitiveError<CombineMode>>
Performs the conversion.
sourceimpl TryFromPrimitive for CombineMode
impl TryFromPrimitive for CombineMode
type Primitive = u32
const NAME: &'static str = "CombineMode"
fn try_from_primitive(
number: <CombineMode as TryFromPrimitive>::Primitive
) -> Result<CombineMode, TryFromPrimitiveError<CombineMode>>
sourceimpl ValueConverterTrait<CombineMode> for ValueConverter
impl ValueConverterTrait<CombineMode> for ValueConverter
sourcefn into_value(v: CombineMode) -> Value
fn into_value(v: CombineMode) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> CombineMode
fn from_value(v: &Value) -> CombineMode
Extracts the value from a Value
enum.
impl Copy for CombineMode
impl Eq for CombineMode
impl NoUninit for CombineMode
impl StructuralEq for CombineMode
impl StructuralPartialEq for CombineMode
Auto Trait Implementations
impl RefUnwindSafe for CombineMode
impl Send for CombineMode
impl Sync for CombineMode
impl Unpin for CombineMode
impl UnwindSafe for CombineMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more