#[repr(u8)]pub enum MethodForRep {
Auto = 0,
CenterBox = 1,
AverageColors = 2,
AveragePixels = 3,
}
Expand description
Method for choosing a color from the box
Variants§
Auto = 0
Choose automatically the method for selecting representative color from each box
CenterBox = 1
Choose the center of the box
AverageColors = 2
Choose the average all the color in the box (specified in Heckbert’s paper)
AveragePixels = 3
Choose the average all the pixels in the box
Implementations§
Source§impl MethodForRep
impl MethodForRep
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new MethodForRep.
Trait Implementations§
Source§impl Clone for MethodForRep
impl Clone for MethodForRep
Source§fn clone(&self) -> MethodForRep
fn clone(&self) -> MethodForRep
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 MethodForRep
impl Debug for MethodForRep
Source§impl Default for MethodForRep
impl Default for MethodForRep
Source§fn default() -> MethodForRep
fn default() -> MethodForRep
Returns the “default value” for a type. Read more
Source§impl Display for MethodForRep
impl Display for MethodForRep
Source§impl From<&MethodForRep> for &'static str
impl From<&MethodForRep> for &'static str
Source§fn from(val: &MethodForRep) -> Self
fn from(val: &MethodForRep) -> Self
Converts to this type from the input type.
Source§impl From<MethodForRep> for &'static str
impl From<MethodForRep> for &'static str
Source§fn from(val: MethodForRep) -> Self
fn from(val: MethodForRep) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MethodForRep
impl PartialEq for MethodForRep
impl Copy for MethodForRep
impl StructuralPartialEq for MethodForRep
Auto Trait Implementations§
impl Freeze for MethodForRep
impl RefUnwindSafe for MethodForRep
impl Send for MethodForRep
impl Sync for MethodForRep
impl Unpin for MethodForRep
impl UnwindSafe for MethodForRep
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