Struct hayagriva::Formatting
source · pub struct Formatting {
pub font_style: FontStyle,
pub font_variant: FontVariant,
pub font_weight: FontWeight,
pub text_decoration: TextDecoration,
pub vertical_align: VerticalAlign,
}
Expand description
Some formatting information.
Fields§
§font_style: FontStyle
Whether the text is italic.
font_variant: FontVariant
Whether the text is small caps.
font_weight: FontWeight
The font weight.
text_decoration: TextDecoration
Whether the text is underlined.
vertical_align: VerticalAlign
Whether the text is superscript or subscript.
Trait Implementations§
source§impl Clone for Formatting
impl Clone for Formatting
source§fn clone(&self) -> Formatting
fn clone(&self) -> Formatting
Returns a copy 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 Formatting
impl Debug for Formatting
source§impl Default for Formatting
impl Default for Formatting
source§fn default() -> Formatting
fn default() -> Formatting
Returns the “default value” for a type. Read more
source§impl Hash for Formatting
impl Hash for Formatting
source§impl PartialEq for Formatting
impl PartialEq for Formatting
source§fn eq(&self, other: &Formatting) -> bool
fn eq(&self, other: &Formatting) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Formatting
impl Eq for Formatting
impl StructuralPartialEq for Formatting
Auto Trait Implementations§
impl RefUnwindSafe for Formatting
impl Send for Formatting
impl Sync for Formatting
impl Unpin for Formatting
impl UnwindSafe for Formatting
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.