pub struct ImageContext {
pub width: u32,
pub height: u32,
pub channels: u32,
}Fields§
§width: u32§height: u32§channels: u32Trait Implementations§
Source§impl Clone for ImageContext
impl Clone for ImageContext
Source§fn clone(&self) -> ImageContext
fn clone(&self) -> ImageContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ImageContext
impl Debug for ImageContext
Source§impl Validator<ImageContext> for ChannelsAllowed
impl Validator<ImageContext> for ChannelsAllowed
fn check(&self, ctx: &ImageContext) -> ValidationResult
fn name(&self) -> &'static str
Source§impl Validator<ImageContext> for ImageMaxBounds
impl Validator<ImageContext> for ImageMaxBounds
fn check(&self, ctx: &ImageContext) -> ValidationResult
fn name(&self) -> &'static str
Auto Trait Implementations§
impl Freeze for ImageContext
impl RefUnwindSafe for ImageContext
impl Send for ImageContext
impl Sync for ImageContext
impl Unpin for ImageContext
impl UnsafeUnpin for ImageContext
impl UnwindSafe for ImageContext
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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