Expand description
Image metadata
Fields
size: Size
Image size
Implementations
sourceimpl<T: Type, C: Color> Meta<T, C>
impl<T: Type, C: Color> Meta<T, C>
sourcepub fn width_step(&self) -> usize
pub fn width_step(&self) -> usize
Returns the size of a row
sourcepub fn num_pixels(&self) -> usize
pub fn num_pixels(&self) -> usize
Number of pixels
sourcepub fn num_values(&self) -> usize
pub fn num_values(&self) -> usize
Number of items
sourcepub fn is_alpha_channel(&self, c: Channel) -> bool
pub fn is_alpha_channel(&self, c: Channel) -> bool
Returns true when the provided index matches the alpha channel index
sourcepub fn color_name(&self) -> &str
pub fn color_name(&self) -> &str
Get color name
sourcepub fn convert_index_to_point(&self, n: usize) -> Point
pub fn convert_index_to_point(&self, n: usize) -> Point
Convert from index to Point
sourcepub fn iter(&self) -> impl '_ + ParallelIterator<Item = Point>
pub fn iter(&self) -> impl '_ + ParallelIterator<Item = Point>
Get pixel iterator
Trait Implementations
sourceimpl<'de, T: Type, C: Color> Deserialize<'de> for Meta<T, C>
impl<'de, T: Type, C: Color> Deserialize<'de> for Meta<T, C>
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<T: Eq + Type, C: Eq + Color> Eq for Meta<T, C>
impl<T: Type, C: Color> StructuralEq for Meta<T, C>
impl<T: Type, C: Color> StructuralPartialEq for Meta<T, C>
Auto Trait Implementations
impl<T, C> RefUnwindSafe for Meta<T, C> where
C: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, C> Send for Meta<T, C>
impl<T, C> Sync for Meta<T, C>
impl<T, C> Unpin for Meta<T, C>
impl<T, C> UnwindSafe for Meta<T, C> where
C: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more