#[repr(i32)]pub enum DistanceModel {
None = 0,
Linear = 1,
Exponential = 2,
Inverse = 3,
}Variants§
Trait Implementations§
Source§impl Clone for DistanceModel
impl Clone for DistanceModel
Source§fn clone(&self) -> DistanceModel
fn clone(&self) -> DistanceModel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DistanceModel
impl Debug for DistanceModel
Source§impl Hash for DistanceModel
impl Hash for DistanceModel
Source§impl Ord for DistanceModel
impl Ord for DistanceModel
Source§fn cmp(&self, other: &DistanceModel) -> Ordering
fn cmp(&self, other: &DistanceModel) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DistanceModel
impl PartialEq for DistanceModel
Source§impl PartialOrd for DistanceModel
impl PartialOrd for DistanceModel
impl Copy for DistanceModel
impl Eq for DistanceModel
impl StructuralPartialEq for DistanceModel
Auto Trait Implementations§
impl Freeze for DistanceModel
impl RefUnwindSafe for DistanceModel
impl Send for DistanceModel
impl Sync for DistanceModel
impl Unpin for DistanceModel
impl UnwindSafe for DistanceModel
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