pub struct StretchMode(pub i64);
Tuple Fields§
§0: i64
Implementations§
Source§impl StretchMode
impl StretchMode
pub const SCALE: StretchMode
pub const TILE: StretchMode
pub const KEEP: StretchMode
pub const KEEP_CENTERED: StretchMode
pub const KEEP_ASPECT: StretchMode
pub const KEEP_ASPECT_CENTERED: StretchMode
pub const KEEP_ASPECT_COVERED: StretchMode
Trait Implementations§
Source§impl Clone for StretchMode
impl Clone for StretchMode
Source§fn clone(&self) -> StretchMode
fn clone(&self) -> StretchMode
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StretchMode
impl Debug for StretchMode
Source§impl From<StretchMode> for i64
impl From<StretchMode> for i64
Source§fn from(v: StretchMode) -> Self
fn from(v: StretchMode) -> Self
Converts to this type from the input type.
Source§impl From<i64> for StretchMode
impl From<i64> for StretchMode
Source§impl FromVariant for StretchMode
impl FromVariant for StretchMode
fn from_variant(v: &Variant) -> Result<Self, FromVariantError>
Source§impl Hash for StretchMode
impl Hash for StretchMode
Source§impl Ord for StretchMode
impl Ord for StretchMode
Source§fn cmp(&self, other: &StretchMode) -> Ordering
fn cmp(&self, other: &StretchMode) -> 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 StretchMode
impl PartialEq for StretchMode
Source§impl PartialOrd for StretchMode
impl PartialOrd for StretchMode
impl Copy for StretchMode
impl Eq for StretchMode
impl StructuralPartialEq for StretchMode
Auto Trait Implementations§
impl Freeze for StretchMode
impl RefUnwindSafe for StretchMode
impl Send for StretchMode
impl Sync for StretchMode
impl Unpin for StretchMode
impl UnwindSafe for StretchMode
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> 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.