pub enum FontStyleStyleValue {
Normal(Ident),
Italic(Ident),
Left(Ident),
Right(Ident),
Oblique(Ident, Option<Angle>),
}Expand description
Represents the style value for font-style as defined in css-fonts-5.
The font-style CSS property sets the text style, with normal, italic, and oblique options.
The grammar is defined as:
normal | italic | left | right | oblique <angle [-90deg,90deg]>?Variants§
Trait Implementations§
Source§impl Clone for FontStyleStyleValue
impl Clone for FontStyleStyleValue
Source§fn clone(&self) -> FontStyleStyleValue
fn clone(&self) -> FontStyleStyleValue
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 FontStyleStyleValue
impl Debug for FontStyleStyleValue
Source§impl Hash for FontStyleStyleValue
impl Hash for FontStyleStyleValue
Source§impl Ord for FontStyleStyleValue
impl Ord for FontStyleStyleValue
Source§fn cmp(&self, other: &FontStyleStyleValue) -> Ordering
fn cmp(&self, other: &FontStyleStyleValue) -> 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 FontStyleStyleValue
impl<'a> Parse<'a> for FontStyleStyleValue
Source§impl PartialEq for FontStyleStyleValue
impl PartialEq for FontStyleStyleValue
Source§impl PartialOrd for FontStyleStyleValue
impl PartialOrd for FontStyleStyleValue
Source§impl<'a> Peek<'a> for FontStyleStyleValue
impl<'a> Peek<'a> for FontStyleStyleValue
Source§impl ToCursors for FontStyleStyleValue
impl ToCursors for FontStyleStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for FontStyleStyleValue
impl StructuralPartialEq for FontStyleStyleValue
Auto Trait Implementations§
impl Freeze for FontStyleStyleValue
impl RefUnwindSafe for FontStyleStyleValue
impl Send for FontStyleStyleValue
impl Sync for FontStyleStyleValue
impl Unpin for FontStyleStyleValue
impl UnwindSafe for FontStyleStyleValue
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