Struct manganis_common::ImageOptions
source · pub struct ImageOptions { /* private fields */ }
Expand description
The options for an image asset
Implementations§
source§impl ImageOptions
impl ImageOptions
sourcepub fn set_preload(&mut self, preload: bool)
pub fn set_preload(&mut self, preload: bool)
Sets whether the image should be preloaded
sourcepub fn set_compress(&mut self, compress: bool)
pub fn set_compress(&mut self, compress: bool)
Sets whether the image should be compressed
Trait Implementations§
source§impl Clone for ImageOptions
impl Clone for ImageOptions
source§fn clone(&self) -> ImageOptions
fn clone(&self) -> ImageOptions
Returns a copy 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 ImageOptions
impl Debug for ImageOptions
source§impl<'de> Deserialize<'de> for ImageOptions
impl<'de> Deserialize<'de> for ImageOptions
source§fn 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
source§impl Display for ImageOptions
impl Display for ImageOptions
source§impl Hash for ImageOptions
impl Hash for ImageOptions
source§impl PartialEq for ImageOptions
impl PartialEq for ImageOptions
source§fn eq(&self, other: &ImageOptions) -> bool
fn eq(&self, other: &ImageOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ImageOptions
impl PartialOrd for ImageOptions
source§fn partial_cmp(&self, other: &ImageOptions) -> Option<Ordering>
fn partial_cmp(&self, other: &ImageOptions) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ImageOptions
impl Serialize for ImageOptions
impl StructuralPartialEq for ImageOptions
Auto Trait Implementations§
impl Freeze for ImageOptions
impl RefUnwindSafe for ImageOptions
impl Send for ImageOptions
impl Sync for ImageOptions
impl Unpin for ImageOptions
impl UnwindSafe for ImageOptions
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