Enum rsvg::properties::PropertyId
source · #[repr(u8)]enum PropertyId {
Show 69 variants
Font,
Marker,
BaselineShift,
ClipPath,
ClipRule,
Color,
ColorInterpolationFilters,
CX,
CY,
Direction,
Display,
EnableBackground,
Fill,
FillOpacity,
FillRule,
Filter,
FloodColor,
FloodOpacity,
FontFamily,
FontSize,
FontStretch,
FontStyle,
FontVariant,
FontWeight,
GlyphOrientationVertical,
Height,
ImageRendering,
LetterSpacing,
LightingColor,
MarkerEnd,
MarkerMid,
MarkerStart,
Mask,
Opacity,
Overflow,
R,
RX,
RY,
ShapeRendering,
StopColor,
StopOpacity,
Stroke,
StrokeDasharray,
StrokeDashoffset,
StrokeLinecap,
StrokeLinejoin,
StrokeMiterlimit,
StrokeOpacity,
StrokeWidth,
TextAnchor,
TextDecoration,
TextRendering,
TransformProperty,
UnicodeBidi,
Visibility,
Width,
WritingMode,
X,
Y,
Isolation,
LineHeight,
MaskType,
MixBlendMode,
PaintOrder,
TextOrientation,
VectorEffect,
XmlLang,
XmlSpace,
UnsetProperty,
}
Expand description
Used to match ParsedProperty
to their discriminant
The PropertyId::UnsetProperty
can be used as a sentinel value, as
it does not match any ParsedProperty
discriminant; it is really the
number of valid values in this enum.
Variants§
Font
Marker
BaselineShift
ClipPath
ClipRule
Color
ColorInterpolationFilters
CX
CY
Direction
Display
EnableBackground
Fill
FillOpacity
FillRule
Filter
FloodColor
FloodOpacity
FontFamily
FontSize
FontStretch
FontStyle
FontVariant
FontWeight
GlyphOrientationVertical
Height
ImageRendering
LetterSpacing
LightingColor
MarkerEnd
MarkerMid
MarkerStart
Mask
Opacity
Overflow
R
RX
RY
ShapeRendering
StopColor
StopOpacity
Stroke
StrokeDasharray
StrokeDashoffset
StrokeLinecap
StrokeLinejoin
StrokeMiterlimit
StrokeOpacity
StrokeWidth
TextAnchor
TextDecoration
TextRendering
TransformProperty
UnicodeBidi
Visibility
Width
WritingMode
X
Y
Isolation
LineHeight
MaskType
MixBlendMode
PaintOrder
TextOrientation
VectorEffect
XmlLang
XmlSpace
UnsetProperty
Implementations§
source§impl PropertyId
impl PropertyId
fn is_shorthand(self) -> bool
Trait Implementations§
source§impl Clone for PropertyId
impl Clone for PropertyId
source§fn clone(&self) -> PropertyId
fn clone(&self) -> PropertyId
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 PartialEq<PropertyId> for PropertyId
impl PartialEq<PropertyId> for PropertyId
source§fn eq(&self, other: &PropertyId) -> bool
fn eq(&self, other: &PropertyId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PropertyId
impl StructuralPartialEq for PropertyId
Auto Trait Implementations§
impl RefUnwindSafe for PropertyId
impl Send for PropertyId
impl Sync for PropertyId
impl Unpin for PropertyId
impl UnwindSafe for PropertyId
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.