pub enum ImageSizeLimit {
Native,
FixedMaxEdge(u32),
Adaptive {
min_long_edge: u32,
min_short_edge: u32,
},
}Variants§
Implementations§
Source§impl ImageSizeLimit
impl ImageSizeLimit
pub fn description(self) -> String
Trait Implementations§
Source§impl Clone for ImageSizeLimit
impl Clone for ImageSizeLimit
Source§fn clone(&self) -> ImageSizeLimit
fn clone(&self) -> ImageSizeLimit
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 moreimpl Copy for ImageSizeLimit
Source§impl Debug for ImageSizeLimit
impl Debug for ImageSizeLimit
impl Eq for ImageSizeLimit
Source§impl PartialEq for ImageSizeLimit
impl PartialEq for ImageSizeLimit
Source§fn eq(&self, other: &ImageSizeLimit) -> bool
fn eq(&self, other: &ImageSizeLimit) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ImageSizeLimit
Auto Trait Implementations§
impl Freeze for ImageSizeLimit
impl RefUnwindSafe for ImageSizeLimit
impl Send for ImageSizeLimit
impl Sync for ImageSizeLimit
impl Unpin for ImageSizeLimit
impl UnsafeUnpin for ImageSizeLimit
impl UnwindSafe for ImageSizeLimit
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