pub enum AspectRatioValue {
Initial,
Inherit,
Revert,
RevertLayer,
Unset,
Auto,
Ratio(Ratio),
}Variants§
Implementations§
Source§impl AspectRatioValue
impl AspectRatioValue
Sourcepub const fn is_initial(&self) -> bool
pub const fn is_initial(&self) -> bool
Returns true if the enum is AspectRatioValue::Initial otherwise false
Sourcepub const fn is_inherit(&self) -> bool
pub const fn is_inherit(&self) -> bool
Returns true if the enum is AspectRatioValue::Inherit otherwise false
Sourcepub const fn is_revert(&self) -> bool
pub const fn is_revert(&self) -> bool
Returns true if the enum is AspectRatioValue::Revert otherwise false
Sourcepub const fn is_revert_layer(&self) -> bool
pub const fn is_revert_layer(&self) -> bool
Returns true if the enum is AspectRatioValue::RevertLayer otherwise false
Sourcepub const fn is_unset(&self) -> bool
pub const fn is_unset(&self) -> bool
Returns true if the enum is AspectRatioValue::Unset otherwise false
Trait Implementations§
Source§impl Clone for AspectRatioValue
impl Clone for AspectRatioValue
Source§fn clone(&self) -> AspectRatioValue
fn clone(&self) -> AspectRatioValue
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 AspectRatioValue
impl Debug for AspectRatioValue
Source§impl Display for AspectRatioValue
impl Display for AspectRatioValue
Source§impl PartialEq for AspectRatioValue
impl PartialEq for AspectRatioValue
impl StructuralPartialEq for AspectRatioValue
impl UnitDataType<AspectRatio<AspectRatioValue>> for AspectRatioValue
Auto Trait Implementations§
impl Freeze for AspectRatioValue
impl RefUnwindSafe for AspectRatioValue
impl Send for AspectRatioValue
impl Sync for AspectRatioValue
impl Unpin for AspectRatioValue
impl UnwindSafe for AspectRatioValue
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