#[repr(C)]pub enum MethodForRepColor {
Auto = 0,
CenterOfBox = 1,
AverageColor = 2,
AveragePixels = 3,
}Expand description
Method for choosing the a color from the box
Variants§
Auto = 0
CenterOfBox = 1
AverageColor = 2
Method is described in Heckbert’s paper
AveragePixels = 3
Trait Implementations§
Source§impl Clone for MethodForRepColor
impl Clone for MethodForRepColor
Source§fn clone(&self) -> MethodForRepColor
fn clone(&self) -> MethodForRepColor
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 MethodForRepColor
impl Debug for MethodForRepColor
Source§impl Hash for MethodForRepColor
impl Hash for MethodForRepColor
Source§impl PartialEq for MethodForRepColor
impl PartialEq for MethodForRepColor
impl Copy for MethodForRepColor
impl Eq for MethodForRepColor
impl StructuralPartialEq for MethodForRepColor
Auto Trait Implementations§
impl Freeze for MethodForRepColor
impl RefUnwindSafe for MethodForRepColor
impl Send for MethodForRepColor
impl Sync for MethodForRepColor
impl Unpin for MethodForRepColor
impl UnwindSafe for MethodForRepColor
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