pub enum AspectMode {
Fit,
Cover,
}
Expand description
The display style of the image if the aspect ratio of the image and that specified by the aspectRatio property do not match.
Variants§
Trait Implementations§
Source§impl Clone for AspectMode
impl Clone for AspectMode
Source§fn clone(&self) -> AspectMode
fn clone(&self) -> AspectMode
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 AspectMode
impl Debug for AspectMode
Source§impl Default for AspectMode
impl Default for AspectMode
Source§fn default() -> AspectMode
fn default() -> AspectMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AspectMode
impl<'de> Deserialize<'de> for AspectMode
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 Hash for AspectMode
impl Hash for AspectMode
Source§impl Ord for AspectMode
impl Ord for AspectMode
Source§fn cmp(&self, other: &AspectMode) -> Ordering
fn cmp(&self, other: &AspectMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AspectMode
impl PartialEq for AspectMode
Source§impl PartialOrd for AspectMode
impl PartialOrd for AspectMode
Source§impl Serialize for AspectMode
impl Serialize for AspectMode
impl Copy for AspectMode
impl Eq for AspectMode
impl StructuralPartialEq for AspectMode
Auto Trait Implementations§
impl Freeze for AspectMode
impl RefUnwindSafe for AspectMode
impl Send for AspectMode
impl Sync for AspectMode
impl Unpin for AspectMode
impl UnwindSafe for AspectMode
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.