pub struct ImageNodeColor {
pub b: u8,
pub g: u8,
pub r: u8,
}
Expand description
Represents a pixel in a video. Each pixel is represented by its color which is needed to compute the weights between pixels.
Fields§
§b: u8
Blue channel.
g: u8
Green channel.
r: u8
Red channel.
Implementations§
Trait Implementations§
Source§impl Clone for ImageNodeColor
impl Clone for ImageNodeColor
Source§fn clone(&self) -> ImageNodeColor
fn clone(&self) -> ImageNodeColor
Returns a copy 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 ImageNodeColor
impl Debug for ImageNodeColor
Source§impl Default for ImageNodeColor
impl Default for ImageNodeColor
Source§fn default() -> ImageNodeColor
fn default() -> ImageNodeColor
Returns the “default value” for a type. Read more
impl Copy for ImageNodeColor
Auto Trait Implementations§
impl Freeze for ImageNodeColor
impl RefUnwindSafe for ImageNodeColor
impl Send for ImageNodeColor
impl Sync for ImageNodeColor
impl Unpin for ImageNodeColor
impl UnwindSafe for ImageNodeColor
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