Enum rsvg::properties::ParsedProperty
source · pub enum ParsedProperty {
Show 68 variants
Font(SpecifiedValue<Font>),
Marker(SpecifiedValue<Marker>),
BaselineShift(SpecifiedValue<BaselineShift>),
ClipPath(SpecifiedValue<ClipPath>),
ClipRule(SpecifiedValue<ClipRule>),
Color(SpecifiedValue<Color>),
ColorInterpolationFilters(SpecifiedValue<ColorInterpolationFilters>),
CX(SpecifiedValue<CX>),
CY(SpecifiedValue<CY>),
Direction(SpecifiedValue<Direction>),
Display(SpecifiedValue<Display>),
EnableBackground(SpecifiedValue<EnableBackground>),
Fill(SpecifiedValue<Fill>),
FillOpacity(SpecifiedValue<FillOpacity>),
FillRule(SpecifiedValue<FillRule>),
Filter(SpecifiedValue<Filter>),
FloodColor(SpecifiedValue<FloodColor>),
FloodOpacity(SpecifiedValue<FloodOpacity>),
FontFamily(SpecifiedValue<FontFamily>),
FontSize(SpecifiedValue<FontSize>),
FontStretch(SpecifiedValue<FontStretch>),
FontStyle(SpecifiedValue<FontStyle>),
FontVariant(SpecifiedValue<FontVariant>),
FontWeight(SpecifiedValue<FontWeight>),
GlyphOrientationVertical(SpecifiedValue<GlyphOrientationVertical>),
Height(SpecifiedValue<Height>),
ImageRendering(SpecifiedValue<ImageRendering>),
LetterSpacing(SpecifiedValue<LetterSpacing>),
LightingColor(SpecifiedValue<LightingColor>),
MarkerEnd(SpecifiedValue<MarkerEnd>),
MarkerMid(SpecifiedValue<MarkerMid>),
MarkerStart(SpecifiedValue<MarkerStart>),
Mask(SpecifiedValue<Mask>),
Opacity(SpecifiedValue<Opacity>),
Overflow(SpecifiedValue<Overflow>),
R(SpecifiedValue<R>),
RX(SpecifiedValue<RX>),
RY(SpecifiedValue<RY>),
ShapeRendering(SpecifiedValue<ShapeRendering>),
StopColor(SpecifiedValue<StopColor>),
StopOpacity(SpecifiedValue<StopOpacity>),
Stroke(SpecifiedValue<Stroke>),
StrokeDasharray(SpecifiedValue<StrokeDasharray>),
StrokeDashoffset(SpecifiedValue<StrokeDashoffset>),
StrokeLinecap(SpecifiedValue<StrokeLinecap>),
StrokeLinejoin(SpecifiedValue<StrokeLinejoin>),
StrokeMiterlimit(SpecifiedValue<StrokeMiterlimit>),
StrokeOpacity(SpecifiedValue<StrokeOpacity>),
StrokeWidth(SpecifiedValue<StrokeWidth>),
TextAnchor(SpecifiedValue<TextAnchor>),
TextDecoration(SpecifiedValue<TextDecoration>),
TextRendering(SpecifiedValue<TextRendering>),
TransformProperty(SpecifiedValue<TransformProperty>),
UnicodeBidi(SpecifiedValue<UnicodeBidi>),
Visibility(SpecifiedValue<Visibility>),
Width(SpecifiedValue<Width>),
WritingMode(SpecifiedValue<WritingMode>),
X(SpecifiedValue<X>),
Y(SpecifiedValue<Y>),
Isolation(SpecifiedValue<Isolation>),
LineHeight(SpecifiedValue<LineHeight>),
MaskType(SpecifiedValue<MaskType>),
MixBlendMode(SpecifiedValue<MixBlendMode>),
PaintOrder(SpecifiedValue<PaintOrder>),
TextOrientation(SpecifiedValue<TextOrientation>),
VectorEffect(SpecifiedValue<VectorEffect>),
XmlLang(SpecifiedValue<XmlLang>),
XmlSpace(SpecifiedValue<XmlSpace>),
}
Expand description
Embodies “which property is this” plus the property’s value
Variants§
Font(SpecifiedValue<Font>)
Marker(SpecifiedValue<Marker>)
BaselineShift(SpecifiedValue<BaselineShift>)
ClipPath(SpecifiedValue<ClipPath>)
ClipRule(SpecifiedValue<ClipRule>)
Color(SpecifiedValue<Color>)
ColorInterpolationFilters(SpecifiedValue<ColorInterpolationFilters>)
CX(SpecifiedValue<CX>)
CY(SpecifiedValue<CY>)
Direction(SpecifiedValue<Direction>)
Display(SpecifiedValue<Display>)
EnableBackground(SpecifiedValue<EnableBackground>)
Fill(SpecifiedValue<Fill>)
FillOpacity(SpecifiedValue<FillOpacity>)
FillRule(SpecifiedValue<FillRule>)
Filter(SpecifiedValue<Filter>)
FloodColor(SpecifiedValue<FloodColor>)
FloodOpacity(SpecifiedValue<FloodOpacity>)
FontFamily(SpecifiedValue<FontFamily>)
FontSize(SpecifiedValue<FontSize>)
FontStretch(SpecifiedValue<FontStretch>)
FontStyle(SpecifiedValue<FontStyle>)
FontVariant(SpecifiedValue<FontVariant>)
FontWeight(SpecifiedValue<FontWeight>)
GlyphOrientationVertical(SpecifiedValue<GlyphOrientationVertical>)
Height(SpecifiedValue<Height>)
ImageRendering(SpecifiedValue<ImageRendering>)
LetterSpacing(SpecifiedValue<LetterSpacing>)
LightingColor(SpecifiedValue<LightingColor>)
MarkerEnd(SpecifiedValue<MarkerEnd>)
MarkerMid(SpecifiedValue<MarkerMid>)
MarkerStart(SpecifiedValue<MarkerStart>)
Mask(SpecifiedValue<Mask>)
Opacity(SpecifiedValue<Opacity>)
Overflow(SpecifiedValue<Overflow>)
R(SpecifiedValue<R>)
RX(SpecifiedValue<RX>)
RY(SpecifiedValue<RY>)
ShapeRendering(SpecifiedValue<ShapeRendering>)
StopColor(SpecifiedValue<StopColor>)
StopOpacity(SpecifiedValue<StopOpacity>)
Stroke(SpecifiedValue<Stroke>)
StrokeDasharray(SpecifiedValue<StrokeDasharray>)
StrokeDashoffset(SpecifiedValue<StrokeDashoffset>)
StrokeLinecap(SpecifiedValue<StrokeLinecap>)
StrokeLinejoin(SpecifiedValue<StrokeLinejoin>)
StrokeMiterlimit(SpecifiedValue<StrokeMiterlimit>)
StrokeOpacity(SpecifiedValue<StrokeOpacity>)
StrokeWidth(SpecifiedValue<StrokeWidth>)
TextAnchor(SpecifiedValue<TextAnchor>)
TextDecoration(SpecifiedValue<TextDecoration>)
TextRendering(SpecifiedValue<TextRendering>)
TransformProperty(SpecifiedValue<TransformProperty>)
UnicodeBidi(SpecifiedValue<UnicodeBidi>)
Visibility(SpecifiedValue<Visibility>)
Width(SpecifiedValue<Width>)
WritingMode(SpecifiedValue<WritingMode>)
X(SpecifiedValue<X>)
Y(SpecifiedValue<Y>)
Isolation(SpecifiedValue<Isolation>)
LineHeight(SpecifiedValue<LineHeight>)
MaskType(SpecifiedValue<MaskType>)
MixBlendMode(SpecifiedValue<MixBlendMode>)
PaintOrder(SpecifiedValue<PaintOrder>)
TextOrientation(SpecifiedValue<TextOrientation>)
VectorEffect(SpecifiedValue<VectorEffect>)
XmlLang(SpecifiedValue<XmlLang>)
XmlSpace(SpecifiedValue<XmlSpace>)
Implementations§
source§impl ParsedProperty
impl ParsedProperty
fn get_property_id(&self) -> PropertyId
fn unspecified(id: PropertyId) -> Self
Trait Implementations§
source§impl Clone for ParsedProperty
impl Clone for ParsedProperty
source§fn clone(&self) -> ParsedProperty
fn clone(&self) -> ParsedProperty
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 moreAuto Trait Implementations§
impl RefUnwindSafe for ParsedProperty
impl Send for ParsedProperty
impl Sync for ParsedProperty
impl Unpin for ParsedProperty
impl UnwindSafe for ParsedProperty
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.