Struct framing::video::Grayscale
[−]
[src]
pub struct Grayscale(pub u8);
A pixel that is one byte long and has just an intensity channel.
Trait Implementations
impl Clone for Grayscale
[src]
fn clone(&self) -> Grayscale
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for Grayscale
[src]
impl Debug for Grayscale
[src]
impl Eq for Grayscale
[src]
impl PartialEq for Grayscale
[src]
fn eq(&self, __arg_0: &Grayscale) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Grayscale) -> bool
This method tests for !=
.
impl Hash for Grayscale
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl ByteChannels for Grayscale
[src]
type Channels = [u8; 1]
The type that represents the collection of channels. Read more
fn width() -> usize
The number of channels in each pixel. Read more