Enum rsvg::property_defs::FontVariant
source · #[repr(C)]pub enum FontVariant {
Normal,
SmallCaps,
}
Expand description
font-variant
property.
SVG1.1: https://www.w3.org/TR/SVG11/text.html#FontVariantProperty
CSS Fonts 3: https://www.w3.org/TR/css-fonts-3/#propdef-font-variant
Note that in CSS3, this is a lot more complex than CSS2.1 / SVG1.1.
Variants§
Trait Implementations§
source§impl Clone for FontVariant
impl Clone for FontVariant
source§fn clone(&self) -> FontVariant
fn clone(&self) -> FontVariant
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 FontVariant
impl Debug for FontVariant
source§impl Default for FontVariant
impl Default for FontVariant
source§fn default() -> FontVariant
fn default() -> FontVariant
Returns the “default value” for a type. Read more
source§impl From<FontVariant> for Variant
impl From<FontVariant> for Variant
source§fn from(v: FontVariant) -> Variant
fn from(v: FontVariant) -> Variant
Converts to this type from the input type.
source§impl Parse for FontVariant
impl Parse for FontVariant
source§fn parse<'i>(parser: &mut Parser<'i, '_>) -> Result<FontVariant, ParseError<'i>>
fn parse<'i>(parser: &mut Parser<'i, '_>) -> Result<FontVariant, ParseError<'i>>
Parses a value out of the
parser
. Read moresource§impl PartialEq<FontVariant> for FontVariant
impl PartialEq<FontVariant> for FontVariant
source§fn eq(&self, other: &FontVariant) -> bool
fn eq(&self, other: &FontVariant) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Property for FontVariant
impl Property for FontVariant
source§fn inherits_automatically() -> bool
fn inherits_automatically() -> bool
Whether the property’s computed value inherits from parent to child elements. Read more
source§fn compute(&self, _v: &ComputedValues) -> Self
fn compute(&self, _v: &ComputedValues) -> Self
Derive the CSS computed value from the parent element’s
ComputedValues
and the
self
value. Read moreimpl Copy for FontVariant
impl StructuralPartialEq for FontVariant
Auto Trait Implementations§
impl RefUnwindSafe for FontVariant
impl Send for FontVariant
impl Sync for FontVariant
impl Unpin for FontVariant
impl UnwindSafe for FontVariant
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
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.