Struct fast_image_resize::pixels::Pixel
source · #[repr(C)]pub struct Pixel<T, C, const COUNT_OF_COMPONENTS: usize>(pub T, _)
where
T: Sized + Copy + Clone + PartialEq + 'static,
C: PixelComponent;
Expand description
Generic type of pixel.
Tuple Fields§
§0: T
Implementations§
Trait Implementations§
source§impl<T, C, const COUNT_OF_COMPONENTS: usize> PartialEq for Pixel<T, C, COUNT_OF_COMPONENTS>
impl<T, C, const COUNT_OF_COMPONENTS: usize> PartialEq for Pixel<T, C, COUNT_OF_COMPONENTS>
source§impl<T, C, const COUNT_OF_COMPONENTS: usize> PixelExt for Pixel<T, C, COUNT_OF_COMPONENTS>where
Self: IntoPixelType + Debug,
T: Sized + Copy + Clone + PartialEq + 'static,
C: PixelComponent,
impl<T, C, const COUNT_OF_COMPONENTS: usize> PixelExt for Pixel<T, C, COUNT_OF_COMPONENTS>where
Self: IntoPixelType + Debug,
T: Sized + Copy + Clone + PartialEq + 'static,
C: PixelComponent,
§type CountOfComponents = Count<COUNT_OF_COMPONENTS>
type CountOfComponents = Count<COUNT_OF_COMPONENTS>
Type that provides information about a count of pixel’s components
source§fn count_of_components() -> usize
fn count_of_components() -> usize
Count of pixel’s components
source§fn count_of_component_values() -> usize
fn count_of_component_values() -> usize
Count of available values of one pixel’s component
source§fn components(buf: &[Self]) -> &[Self::Component]
fn components(buf: &[Self]) -> &[Self::Component]
Create slice of pixel’s components from slice of pixels
source§fn components_mut(buf: &mut [Self]) -> &mut [Self::Component]
fn components_mut(buf: &mut [Self]) -> &mut [Self::Component]
Create mutable slice of pixel’s components from mutable slice of pixels
impl<T, C, const COUNT_OF_COMPONENTS: usize> Copy for Pixel<T, C, COUNT_OF_COMPONENTS>
impl<T, C, const COUNT_OF_COMPONENTS: usize> StructuralPartialEq for Pixel<T, C, COUNT_OF_COMPONENTS>
Auto Trait Implementations§
impl<T, C, const COUNT_OF_COMPONENTS: usize> RefUnwindSafe for Pixel<T, C, COUNT_OF_COMPONENTS>where
C: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, C, const COUNT_OF_COMPONENTS: usize> Send for Pixel<T, C, COUNT_OF_COMPONENTS>
impl<T, C, const COUNT_OF_COMPONENTS: usize> Sync for Pixel<T, C, COUNT_OF_COMPONENTS>
impl<T, C, const COUNT_OF_COMPONENTS: usize> Unpin for Pixel<T, C, COUNT_OF_COMPONENTS>
impl<T, C, const COUNT_OF_COMPONENTS: usize> UnwindSafe for Pixel<T, C, COUNT_OF_COMPONENTS>where
C: UnwindSafe,
T: UnwindSafe,
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