pub enum RelativeSize {
Larger(Ident),
Smaller(Ident),
}Expand description
https://drafts.csswg.org/css2/#value-def-relative-size
<relative-size> = larger | smallerVariants§
Trait Implementations§
Source§impl Clone for RelativeSize
impl Clone for RelativeSize
Source§fn clone(&self) -> RelativeSize
fn clone(&self) -> RelativeSize
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 RelativeSize
impl Debug for RelativeSize
Source§impl From<RelativeSize> for Cursor
impl From<RelativeSize> for Cursor
Source§fn from(value: RelativeSize) -> Cursor
fn from(value: RelativeSize) -> Cursor
Converts to this type from the input type.
Source§impl From<RelativeSize> for Token
impl From<RelativeSize> for Token
Source§fn from(value: RelativeSize) -> Token
fn from(value: RelativeSize) -> Token
Converts to this type from the input type.
Source§impl Hash for RelativeSize
impl Hash for RelativeSize
Source§impl Ord for RelativeSize
impl Ord for RelativeSize
Source§fn cmp(&self, other: &RelativeSize) -> Ordering
fn cmp(&self, other: &RelativeSize) -> 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 RelativeSize
impl<'a> Parse<'a> for RelativeSize
Source§impl PartialEq for RelativeSize
impl PartialEq for RelativeSize
Source§impl PartialOrd for RelativeSize
impl PartialOrd for RelativeSize
Source§impl<'a> Peek<'a> for RelativeSize
impl<'a> Peek<'a> for RelativeSize
Source§impl ToCursors for RelativeSize
impl ToCursors for RelativeSize
fn to_cursors(&self, s: &mut impl CursorSink)
impl Copy for RelativeSize
impl Eq for RelativeSize
impl StructuralPartialEq for RelativeSize
Auto Trait Implementations§
impl Freeze for RelativeSize
impl RefUnwindSafe for RelativeSize
impl Send for RelativeSize
impl Sync for RelativeSize
impl Unpin for RelativeSize
impl UnwindSafe for RelativeSize
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