[][src]Trait rsvg_internals::Parse

pub trait Parse: Sized {
    fn parse<'i>(
        parser: &mut Parser<'i, '_>
    ) -> Result<Self, ParseError<'i, ValueErrorKind>>; fn parse_str(s: &str) -> Result<Self, ParseError<'i, ValueErrorKind>> { ... } }

Trait to parse values using cssparser::Parser.

Required methods

fn parse<'i>(
    parser: &mut Parser<'i, '_>
) -> Result<Self, ParseError<'i, ValueErrorKind>>

Parses a value out of the parser.

All value types should implement this for composability.

Loading content...

Provided methods

fn parse_str(s: &str) -> Result<Self, ParseError<'i, ValueErrorKind>>

Convenience function to parse a value out of a &str.

This is useful mostly for tests which want to avoid creating a cssparser::Parser by hand. Property types do not need to reimplement this.

Loading content...

Implementations on Foreign Types

impl Parse for f64[src]

impl Parse for i32[src]

fn parse<'i>(
    parser: &mut Parser<'i, '_>
) -> Result<Self, ParseError<'i, ValueErrorKind>>
[src]

CSS integer

https://www.w3.org/TR/SVG11/types.html#DataTypeInteger

impl Parse for RGBA[src]

impl Parse for bool[src]

Loading content...

Implementors

impl Parse for rsvg_internals::color::Color[src]

impl Parse for CoordUnits[src]

impl Parse for Dasharray[src]

impl Parse for Mode[src]

impl Parse for OperationType[src]

impl Parse for FunctionType[src]

impl Parse for rsvg_internals::filters::composite::Operator[src]

impl Parse for ColorChannel[src]

impl Parse for Input[src]

impl Parse for rsvg_internals::filters::morphology::Operator[src]

impl Parse for NoiseType[src]

impl Parse for StitchTiles[src]

impl Parse for Font[src]

impl Parse for FontSize[src]

impl Parse for FontWeight[src]

impl Parse for LetterSpacing[src]

impl Parse for LineHeight[src]

impl Parse for SpreadMethod[src]

impl Parse for IRI[src]

impl Parse for MarkerOrient[src]

impl Parse for MarkerUnits[src]

impl Parse for PaintServer[src]

impl Parse for ClipRule[src]

impl Parse for ColorInterpolationFilters[src]

impl Parse for Direction[src]

impl Parse for Display[src]

impl Parse for EnableBackground[src]

impl Parse for FillRule[src]

impl Parse for Filter[src]

impl Parse for FontStretch[src]

impl Parse for FontStyle[src]

impl Parse for FontVariant[src]

impl Parse for MixBlendMode[src]

impl Parse for Overflow[src]

impl Parse for ShapeRendering[src]

impl Parse for StrokeLinecap[src]

impl Parse for StrokeLinejoin[src]

impl Parse for TextAnchor[src]

impl Parse for TextRendering[src]

impl Parse for UnicodeBidi[src]

impl Parse for Visibility[src]

impl Parse for WritingMode[src]

impl Parse for XmlSpace[src]

impl Parse for EdgeMode[src]

impl Parse for Angle[src]

impl Parse for AspectRatio[src]

impl Parse for FilterValueList[src]

impl Parse for FontFamily[src]

impl Parse for GradientUnits[src]

impl Parse for CustomIdent[src]

impl Parse for PatternContentUnits[src]

impl Parse for PatternUnits[src]

impl Parse for BaselineShift[src]

impl Parse for ClipPath[src]

impl Parse for rsvg_internals::property_defs::Color[src]

impl Parse for Fill[src]

impl Parse for FillOpacity[src]

impl Parse for FloodColor[src]

impl Parse for FloodOpacity[src]

impl Parse for LightingColor[src]

impl Parse for Marker[src]

impl Parse for MarkerEnd[src]

impl Parse for MarkerMid[src]

impl Parse for MarkerStart[src]

impl Parse for Mask[src]

impl Parse for Opacity[src]

impl Parse for PaintOrder[src]

impl Parse for StopColor[src]

impl Parse for StopOpacity[src]

impl Parse for Stroke[src]

impl Parse for StrokeDasharray[src]

impl Parse for StrokeDashoffset[src]

impl Parse for StrokeMiterlimit[src]

impl Parse for StrokeOpacity[src]

impl Parse for StrokeWidth[src]

impl Parse for TextDecoration[src]

impl Parse for XmlLang[src]

impl Parse for Points[src]

impl Parse for ViewBox[src]

impl Parse for ClipPathUnits[src]

impl Parse for MaskContentUnits[src]

impl Parse for MaskUnits[src]

impl Parse for Transform[src]

impl Parse for UnitInterval[src]

impl<N: Normalize> Parse for Length<N>[src]

impl<T: Parse + Copy> Parse for NumberOptionalNumber<T>[src]

Loading content...