pub enum CombineRule {
Average,
Min,
Max,
Multiply,
}Expand description
Combine rule for friction/restitution when two materials interact
Variants§
Average
Average of two values
Min
Minimum of two values
Max
Maximum of two values
Multiply
Multiply two values
Implementations§
Trait Implementations§
Source§impl Clone for CombineRule
impl Clone for CombineRule
impl Copy for CombineRule
Source§impl Debug for CombineRule
impl Debug for CombineRule
Source§impl Default for CombineRule
impl Default for CombineRule
impl Eq for CombineRule
Source§impl PartialEq for CombineRule
impl PartialEq for CombineRule
impl StructuralPartialEq for CombineRule
Auto Trait Implementations§
impl Freeze for CombineRule
impl RefUnwindSafe for CombineRule
impl Send for CombineRule
impl Sync for CombineRule
impl Unpin for CombineRule
impl UnsafeUnpin for CombineRule
impl UnwindSafe for CombineRule
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<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