Enum rsvg::properties::PropertyId
source · #[repr(u8)]enum PropertyId {
Show 69 variants
Font = 0,
Marker = 1,
BaselineShift = 2,
ClipPath = 3,
ClipRule = 4,
Color = 5,
ColorInterpolationFilters = 6,
CX = 7,
CY = 8,
Direction = 9,
Display = 10,
EnableBackground = 11,
Fill = 12,
FillOpacity = 13,
FillRule = 14,
Filter = 15,
FloodColor = 16,
FloodOpacity = 17,
FontFamily = 18,
FontSize = 19,
FontStretch = 20,
FontStyle = 21,
FontVariant = 22,
FontWeight = 23,
GlyphOrientationVertical = 24,
Height = 25,
ImageRendering = 26,
LetterSpacing = 27,
LightingColor = 28,
MarkerEnd = 29,
MarkerMid = 30,
MarkerStart = 31,
Mask = 32,
Opacity = 33,
Overflow = 34,
R = 35,
RX = 36,
RY = 37,
ShapeRendering = 38,
StopColor = 39,
StopOpacity = 40,
Stroke = 41,
StrokeDasharray = 42,
StrokeDashoffset = 43,
StrokeLinecap = 44,
StrokeLinejoin = 45,
StrokeMiterlimit = 46,
StrokeOpacity = 47,
StrokeWidth = 48,
TextAnchor = 49,
TextDecoration = 50,
TextRendering = 51,
TransformProperty = 52,
UnicodeBidi = 53,
Visibility = 54,
Width = 55,
WritingMode = 56,
X = 57,
Y = 58,
Isolation = 59,
LineHeight = 60,
MaskType = 61,
MixBlendMode = 62,
PaintOrder = 63,
TextOrientation = 64,
VectorEffect = 65,
XmlLang = 66,
XmlSpace = 67,
UnsetProperty = 68,
}
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 = 0
Marker = 1
BaselineShift = 2
ClipPath = 3
ClipRule = 4
Color = 5
ColorInterpolationFilters = 6
CX = 7
CY = 8
Direction = 9
Display = 10
EnableBackground = 11
Fill = 12
FillOpacity = 13
FillRule = 14
Filter = 15
FloodColor = 16
FloodOpacity = 17
FontFamily = 18
FontSize = 19
FontStretch = 20
FontStyle = 21
FontVariant = 22
FontWeight = 23
GlyphOrientationVertical = 24
Height = 25
ImageRendering = 26
LetterSpacing = 27
LightingColor = 28
MarkerEnd = 29
MarkerMid = 30
MarkerStart = 31
Mask = 32
Opacity = 33
Overflow = 34
R = 35
RX = 36
RY = 37
ShapeRendering = 38
StopColor = 39
StopOpacity = 40
Stroke = 41
StrokeDasharray = 42
StrokeDashoffset = 43
StrokeLinecap = 44
StrokeLinejoin = 45
StrokeMiterlimit = 46
StrokeOpacity = 47
StrokeWidth = 48
TextAnchor = 49
TextDecoration = 50
TextRendering = 51
TransformProperty = 52
UnicodeBidi = 53
Visibility = 54
Width = 55
WritingMode = 56
X = 57
Y = 58
Isolation = 59
LineHeight = 60
MaskType = 61
MixBlendMode = 62
PaintOrder = 63
TextOrientation = 64
VectorEffect = 65
XmlLang = 66
XmlSpace = 67
UnsetProperty = 68
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 for PropertyId
impl PartialEq 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.