pub struct AspectRatioStyleValue {
pub auto: Option<Ident>,
pub ratio: Option<Ratio>,
}Expand description
Represents the style value for aspect-ratio as defined in css-sizing-4.
The aspect-ratio CSS property controls the width-to-height ratio of elements. For and
The grammar is defined as:
auto || <ratio>Fields§
§auto: Option<Ident>§ratio: Option<Ratio>Trait Implementations§
Source§impl Clone for AspectRatioStyleValue
impl Clone for AspectRatioStyleValue
Source§fn clone(&self) -> AspectRatioStyleValue
fn clone(&self) -> AspectRatioStyleValue
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 AspectRatioStyleValue
impl Debug for AspectRatioStyleValue
Source§impl Hash for AspectRatioStyleValue
impl Hash for AspectRatioStyleValue
Source§impl Ord for AspectRatioStyleValue
impl Ord for AspectRatioStyleValue
Source§fn cmp(&self, other: &AspectRatioStyleValue) -> Ordering
fn cmp(&self, other: &AspectRatioStyleValue) -> 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<'a> Parse<'a> for AspectRatioStyleValue
impl<'a> Parse<'a> for AspectRatioStyleValue
Source§impl PartialEq for AspectRatioStyleValue
impl PartialEq for AspectRatioStyleValue
Source§impl PartialOrd for AspectRatioStyleValue
impl PartialOrd for AspectRatioStyleValue
Source§impl<'a> Peek<'a> for AspectRatioStyleValue
impl<'a> Peek<'a> for AspectRatioStyleValue
Source§impl ToCursors for AspectRatioStyleValue
impl ToCursors for AspectRatioStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for AspectRatioStyleValue
impl StructuralPartialEq for AspectRatioStyleValue
Auto Trait Implementations§
impl Freeze for AspectRatioStyleValue
impl RefUnwindSafe for AspectRatioStyleValue
impl Send for AspectRatioStyleValue
impl Sync for AspectRatioStyleValue
impl Unpin for AspectRatioStyleValue
impl UnwindSafe for AspectRatioStyleValue
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