#[repr(u8)]enum PropertyId {
Show 71 variants
Font = 0,
Marker = 1,
BaselineShift = 2,
ClipPath = 3,
ClipRule = 4,
Color = 5,
ColorInterpolationFilters = 6,
CX = 7,
CY = 8,
Direction = 9,
Display = 10,
DominantBaseline = 11,
EnableBackground = 12,
Fill = 13,
FillOpacity = 14,
FillRule = 15,
Filter = 16,
FloodColor = 17,
FloodOpacity = 18,
FontFamily = 19,
FontSize = 20,
FontStretch = 21,
FontStyle = 22,
FontVariant = 23,
FontWeight = 24,
GlyphOrientationVertical = 25,
Height = 26,
ImageRendering = 27,
LetterSpacing = 28,
LightingColor = 29,
MarkerEnd = 30,
MarkerMid = 31,
MarkerStart = 32,
Mask = 33,
Opacity = 34,
Overflow = 35,
R = 36,
RX = 37,
RY = 38,
ShapeRendering = 39,
StopColor = 40,
StopOpacity = 41,
Stroke = 42,
StrokeDasharray = 43,
StrokeDashoffset = 44,
StrokeLinecap = 45,
StrokeLinejoin = 46,
StrokeMiterlimit = 47,
StrokeOpacity = 48,
StrokeWidth = 49,
TextAnchor = 50,
TextDecoration = 51,
TextRendering = 52,
TransformProperty = 53,
UnicodeBidi = 54,
Visibility = 55,
Width = 56,
WritingMode = 57,
X = 58,
Y = 59,
Isolation = 60,
LineHeight = 61,
MaskType = 62,
MixBlendMode = 63,
PaintOrder = 64,
TextOrientation = 65,
VectorEffect = 66,
WhiteSpace = 67,
XmlLang = 68,
XmlSpace = 69,
UnsetProperty = 70,
}
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
DominantBaseline = 11
EnableBackground = 12
Fill = 13
FillOpacity = 14
FillRule = 15
Filter = 16
FloodColor = 17
FloodOpacity = 18
FontFamily = 19
FontSize = 20
FontStretch = 21
FontStyle = 22
FontVariant = 23
FontWeight = 24
GlyphOrientationVertical = 25
Height = 26
ImageRendering = 27
LetterSpacing = 28
LightingColor = 29
MarkerEnd = 30
MarkerMid = 31
MarkerStart = 32
Mask = 33
Opacity = 34
Overflow = 35
R = 36
RX = 37
RY = 38
ShapeRendering = 39
StopColor = 40
StopOpacity = 41
Stroke = 42
StrokeDasharray = 43
StrokeDashoffset = 44
StrokeLinecap = 45
StrokeLinejoin = 46
StrokeMiterlimit = 47
StrokeOpacity = 48
StrokeWidth = 49
TextAnchor = 50
TextDecoration = 51
TextRendering = 52
TransformProperty = 53
UnicodeBidi = 54
Visibility = 55
Width = 56
WritingMode = 57
X = 58
Y = 59
Isolation = 60
LineHeight = 61
MaskType = 62
MixBlendMode = 63
PaintOrder = 64
TextOrientation = 65
VectorEffect = 66
WhiteSpace = 67
XmlLang = 68
XmlSpace = 69
UnsetProperty = 70
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 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 moreSource§impl PartialEq for PropertyId
impl PartialEq for PropertyId
impl Copy for PropertyId
impl StructuralPartialEq for PropertyId
Auto Trait Implementations§
impl Freeze for PropertyId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. 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.