#[repr(u8)]pub enum MethodForLargest {
Auto = 0,
Norm = 1,
Lum = 2,
}
Expand description
Method for finding the largest dimension for splitting, and sorting by that component.
Variants§
Auto = 0
Choose automatically the method for finding the largest dimension
Norm = 1
Simply comparing the range in RGB space
Lum = 2
Transforming into luminosities before the comparison
Implementations§
Source§impl MethodForLargest
impl MethodForLargest
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new MethodForLargest.
Trait Implementations§
Source§impl Clone for MethodForLargest
impl Clone for MethodForLargest
Source§fn clone(&self) -> MethodForLargest
fn clone(&self) -> MethodForLargest
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 MethodForLargest
impl Debug for MethodForLargest
Source§impl Default for MethodForLargest
impl Default for MethodForLargest
Source§fn default() -> MethodForLargest
fn default() -> MethodForLargest
Returns the “default value” for a type. Read more
Source§impl Display for MethodForLargest
impl Display for MethodForLargest
Source§impl From<&MethodForLargest> for &'static str
impl From<&MethodForLargest> for &'static str
Source§fn from(val: &MethodForLargest) -> Self
fn from(val: &MethodForLargest) -> Self
Converts to this type from the input type.
Source§impl From<MethodForLargest> for &'static str
impl From<MethodForLargest> for &'static str
Source§fn from(val: MethodForLargest) -> Self
fn from(val: MethodForLargest) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MethodForLargest
impl PartialEq for MethodForLargest
impl Copy for MethodForLargest
impl StructuralPartialEq for MethodForLargest
Auto Trait Implementations§
impl Freeze for MethodForLargest
impl RefUnwindSafe for MethodForLargest
impl Send for MethodForLargest
impl Sync for MethodForLargest
impl Unpin for MethodForLargest
impl UnwindSafe for MethodForLargest
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