pub struct ImageConvertResult {
pub width: u32,
pub height: u32,
pub original_width: u32,
pub original_height: u32,
pub was_resized: bool,
}Expand description
Result of an image conversion operation.
Fields§
§width: u32Output width in pixels.
height: u32Output height in pixels.
original_width: u32Source width before resizing.
original_height: u32Source height before resizing.
was_resized: boolWhether the image was resized to match WoW texture constraints.
Trait Implementations§
Source§impl Clone for ImageConvertResult
impl Clone for ImageConvertResult
Source§fn clone(&self) -> ImageConvertResult
fn clone(&self) -> ImageConvertResult
Returns a duplicate 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 ImageConvertResult
impl Debug for ImageConvertResult
Source§impl PartialEq for ImageConvertResult
impl PartialEq for ImageConvertResult
impl Eq for ImageConvertResult
impl StructuralPartialEq for ImageConvertResult
Auto Trait Implementations§
impl Freeze for ImageConvertResult
impl RefUnwindSafe for ImageConvertResult
impl Send for ImageConvertResult
impl Sync for ImageConvertResult
impl Unpin for ImageConvertResult
impl UnsafeUnpin for ImageConvertResult
impl UnwindSafe for ImageConvertResult
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