Struct pic_scale::ImageStore
source · pub struct ImageStore<'a, T, const N: usize>{
pub channels: usize,
pub width: usize,
pub height: usize,
/* private fields */
}Expand description
Fields§
§channels: usizeChannels in the image
width: usizeImage width
height: usizeImage height
Implementations§
source§impl<T, const N: usize> ImageStore<'static, T, N>
impl<T, const N: usize> ImageStore<'static, T, N>
source§impl<'a, T, const N: usize> ImageStore<'a, T, N>
impl<'a, T, const N: usize> ImageStore<'a, T, N>
source§impl<'a> ImageStore<'a, u8, 4>
impl<'a> ImageStore<'a, u8, 4>
pub fn unpremultiply_alpha(&self, into: &mut ImageStore<'_, u8, 4>)
pub fn premultiply_alpha(&self, into: &mut ImageStore<'_, u8, 4>)
source§impl<'a> ImageStore<'a, u16, 4>
impl<'a> ImageStore<'a, u16, 4>
pub fn unpremultiply_alpha(&self, into: &mut ImageStore<'_, u16, 4>)
pub fn premultiply_alpha(&self, into: &mut ImageStore<'_, u16, 4>)
source§impl<'a> ImageStore<'a, f32, 4>
impl<'a> ImageStore<'a, f32, 4>
pub fn unpremultiply_alpha(&self, into: &mut ImageStore<'_, f32, 4>)
pub fn premultiply_alpha(&self, into: &mut ImageStore<'_, f32, 4>)
Trait Implementations§
Auto Trait Implementations§
impl<'a, T, const N: usize> Freeze for ImageStore<'a, T, N>
impl<'a, T, const N: usize> RefUnwindSafe for ImageStore<'a, T, N>where
T: RefUnwindSafe,
impl<'a, T, const N: usize> Send for ImageStore<'a, T, N>where
T: Send,
impl<'a, T, const N: usize> Sync for ImageStore<'a, T, N>where
T: Sync,
impl<'a, T, const N: usize> Unpin for ImageStore<'a, T, N>where
T: Unpin,
impl<'a, T, const N: usize> !UnwindSafe for ImageStore<'a, T, N>
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more