Enum FontSizeKeyword
pub enum FontSizeKeyword {
XXSmall,
XSmall,
Small,
Medium,
Large,
XLarge,
XXLarge,
XXXLarge,
}Expand description
A font size keyword corresponding to a specific font size.
Variants§
XXSmall
Corresponds to 60% of medium.
XSmall
Corresponds to 75% of medium.
Small
Corresponds to 89% of medium.
Medium
Corresponds to the font size 14.
Large
Corresponds to 20% more than medium.
XLarge
Corresponds to 50% more than medium.
XXLarge
Corresponds to 100% more than medium.
XXXLarge
Corresponds to 200% more than medium.
Trait Implementations§
§impl Clone for FontSizeKeyword
impl Clone for FontSizeKeyword
§fn clone(&self) -> FontSizeKeyword
fn clone(&self) -> FontSizeKeyword
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 more§impl Debug for FontSizeKeyword
impl Debug for FontSizeKeyword
§impl From<FontSizeKeyword> for FontSize
impl From<FontSizeKeyword> for FontSize
§fn from(font_size_keyword: FontSizeKeyword) -> FontSize
fn from(font_size_keyword: FontSizeKeyword) -> FontSize
Converts to this type from the input type.
§impl<'i> Parse<'i> for FontSizeKeyword
impl<'i> Parse<'i> for FontSizeKeyword
fn parse<'t>( input: &mut Parser<'i, 't>, ) -> Result<FontSizeKeyword, ParseError<'i, CustomParseError<'i>>>
§impl PartialEq for FontSizeKeyword
impl PartialEq for FontSizeKeyword
Source§impl Res<FontSizeKeyword> for FontSizeKeyword
impl Res<FontSizeKeyword> for FontSizeKeyword
Source§fn get_value(&self, _: &impl DataContext) -> FontSizeKeyword
fn get_value(&self, _: &impl DataContext) -> FontSizeKeyword
Returns the value of a resource by value.
fn set_or_bind<F>(self, cx: &mut Context, closure: F)
impl Copy for FontSizeKeyword
impl Eq for FontSizeKeyword
impl StructuralPartialEq for FontSizeKeyword
Auto Trait Implementations§
impl Freeze for FontSizeKeyword
impl RefUnwindSafe for FontSizeKeyword
impl Send for FontSizeKeyword
impl Sync for FontSizeKeyword
impl Unpin for FontSizeKeyword
impl UnsafeUnpin for FontSizeKeyword
impl UnwindSafe for FontSizeKeyword
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.