Trait style::parser::Parse
[−]
[src]
pub trait Parse: Sized { fn parse<'i, 't>(
context: &ParserContext,
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i>>; }
A trait to abstract parsing of a specified value given a ParserContext
and
CSS input.
Required Methods
fn parse<'i, 't>(
context: &ParserContext,
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i>>
context: &ParserContext,
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i>>
Parse a value of this type.
Returns an error on failure.
Implementations on Foreign Types
impl<T> Parse for Vec<T> where
T: Parse + OneOrMoreSeparated,
<T as OneOrMoreSeparated>::S: Separator,
[src]
T: Parse + OneOrMoreSeparated,
<T as OneOrMoreSeparated>::S: Separator,
fn parse<'i, 't>(
context: &ParserContext,
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i>>
[src]
context: &ParserContext,
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i>>
impl Parse for UnicodeRange
[src]
fn parse<'i, 't>(
_context: &ParserContext,
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i>>
[src]
_context: &ParserContext,
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i>>
Implementors
impl Parse for System
impl Parse for Symbol
impl Parse for Negative
impl Parse for Ranges
impl Parse for Pad
impl Parse for Fallback
impl Parse for Symbols
impl Parse for AdditiveSymbols
impl Parse for AdditiveTuple
impl Parse for SpeakAs
impl Parse for FontDisplay
impl Parse for Source
impl Parse for SingleValue
impl Parse for PairValues
impl Parse for VectorValues
impl Parse for ShapeBox
impl Parse for FillRule
impl Parse for GridLine<Integer>
impl Parse for TrackKeyword
impl Parse for RepeatCount<Integer>
impl Parse for LineNameList
impl Parse for ShapeExtent
impl<T> Parse for Rect<T> where
T: Clone + Parse,impl<ColorType: Parse, UrlPaintServer: Parse> Parse for SVGPaint<ColorType, UrlPaintServer>
impl<LengthOrPercentageType: Parse, NumberType: Parse> Parse for SvgLengthOrPercentageOrNumber<LengthOrPercentageType, NumberType>
impl Parse for TimingKeyword
impl Parse for StepPosition
impl Parse for SymbolsType
impl Parse for CounterStyleOrNone
impl<T: Parse> Parse for FontSettingTag<T>
impl<T: Parse> Parse for FontSettings<T>
impl Parse for FontSettingTagInt
impl Parse for FontSettingTagFloat
impl Parse for Angle
impl Parse for BackgroundSize
impl Parse for RepeatKeyword
impl Parse for BackgroundRepeat
impl<ReferenceBox, ImageOrUrl> Parse for ShapeSource<BasicShape, ReferenceBox, ImageOrUrl> where
ReferenceBox: Parse,
ImageOrUrl: Parse,impl Parse for GeometryBox
impl Parse for BasicShape
impl Parse for InsetRect
impl Parse for Circle
impl Parse for Ellipse
impl Parse for ShapeRadius
impl Parse for Polygon
impl Parse for BorderSideWidth
impl Parse for BorderImageSideWidth
impl Parse for BorderImageSlice
impl Parse for BorderRadius
impl Parse for BorderCornerRadius
impl Parse for BorderSpacing
impl Parse for VerticalAlign
impl Parse for AnimationIterationCount
impl Parse for AnimationName
impl Parse for ScrollSnapType
impl Parse for OverscrollBehavior
impl Parse for OverflowClipBox
impl Parse for WillChange
impl Parse for Color
impl Parse for RGBAColor
impl Parse for ColorPropertyValue
impl Parse for Factor
impl Parse for BoxShadow
impl Parse for Filter
impl Parse for SimpleShadow
impl Parse for FlexBasis
impl Parse for FontWeight
impl Parse for FontFamily
impl Parse for FamilyName
impl Parse for FontSizeAdjust
impl Parse for FontSize
impl Parse for FontVariantAlternates
impl Parse for FontVariantEastAsian
impl Parse for FontVariantLigatures
impl Parse for FontVariantNumeric
impl Parse for FontFeatureSettings
impl Parse for FontSynthesis
impl Parse for FontLanguageOverride
impl Parse for XTextZoom
impl Parse for XLang
impl Parse for MozScriptMinSize
impl Parse for MozScriptLevel
impl Parse for MozScriptSizeMultiplier
impl Parse for TrackBreadth<LengthOrPercentage>
impl Parse for TrackSize<LengthOrPercentage>
impl Parse for TrackList<LengthOrPercentage, Integer>
impl Parse for GridTemplateComponent<LengthOrPercentage, Integer>
impl Parse for Image
impl Parse for Gradient
impl Parse for ColorStop
impl Parse for PaintWorklet
impl Parse for MozImageRect
impl Parse for Length
impl<T: Parse> Parse for Either<NonNegativeLength, T>
impl Parse for LengthOrPercentage
impl Parse for LengthOrPercentageOrAuto
impl Parse for LengthOrPercentageOrNone
impl Parse for NonNegativeLengthOrPercentage
impl Parse for MozLength
impl Parse for MaxLength
impl Parse for ListStyleImage
impl Parse for Quotes
impl Parse for OutlineStyle
impl Parse for Percentage
impl Parse for X
impl Parse for Y
impl Parse for Position
impl<S: Parse> Parse for PositionComponent<S>
impl Parse for LegacyPosition
impl Parse for GridAutoFlow
impl Parse for TemplateAreas
impl Parse for SourceSize
impl Parse for SVGLength
impl Parse for SVGWidth
impl Parse for SVGStrokeDashArray
impl Parse for SVGOpacity
impl Parse for XSpan
impl Parse for InitialLetter
impl Parse for LetterSpacing
impl Parse for WordSpacing
impl Parse for LineHeight
impl Parse for TextOverflowSide
impl Parse for TextOverflow
impl Parse for TextDecorationLine
impl Parse for TextAlignKeyword
impl Parse for TextAlign
impl Parse for Time
impl Parse for Transform
impl Parse for TransformOrigin
impl<S> Parse for OriginComponent<S> where
S: Parse,impl Parse for TimingFunction
impl Parse for MozForceBrokenImageIcon
impl Parse for SpecifiedUrl
impl Parse for BorderStyle
impl Parse for Number
impl Parse for NonNegativeNumber
impl Parse for GreaterThanOrEqualToOneNumber
impl Parse for NumberOrPercentage
impl Parse for Opacity
impl Parse for Integer
impl Parse for PositiveInteger
impl Parse for ClipRect
impl Parse for Attr
impl Parse for None_
impl Parse for Auto
impl Parse for Normal
impl Parse for Impossible
impl<A: Parse, B: Parse> Parse for Either<A, B>
impl Parse for KeyframesName
impl Parse for style::properties::longhands::background_attachment::single_value::computed_value::T
impl Parse for style::properties::longhands::background_clip::single_value::computed_value::T
impl Parse for style::properties::longhands::background_origin::single_value::computed_value::T
impl Parse for style::properties::longhands::position::computed_value::T
impl Parse for style::properties::longhands::float::SpecifiedValue
impl Parse for style::properties::longhands::clear::SpecifiedValue
impl Parse for style::properties::longhands::_servo_overflow_clip_box::computed_value::T
impl Parse for style::properties::longhands::overflow_x::computed_value::T
impl Parse for style::properties::longhands::animation_direction::single_value::computed_value::T
impl Parse for style::properties::longhands::animation_play_state::single_value::computed_value::T
impl Parse for style::properties::longhands::animation_fill_mode::single_value::computed_value::T
impl Parse for style::properties::longhands::backface_visibility::computed_value::T
impl Parse for style::properties::longhands::transform_style::computed_value::T
impl Parse for style::properties::longhands::mix_blend_mode::computed_value::T
impl Parse for style::properties::longhands::font_style::computed_value::T
impl Parse for style::properties::longhands::font_variant_caps::computed_value::T
impl Parse for style::properties::longhands::font_stretch::computed_value::T
impl Parse for style::properties::longhands::visibility::computed_value::T
impl Parse for style::properties::longhands::writing_mode::computed_value::T
impl Parse for style::properties::longhands::direction::computed_value::T
impl Parse for style::properties::longhands::image_rendering::computed_value::T
impl Parse for style::properties::longhands::border_collapse::computed_value::T
impl Parse for style::properties::longhands::empty_cells::computed_value::T
impl Parse for style::properties::longhands::caption_side::computed_value::T
impl Parse for style::properties::longhands::text_transform::computed_value::T
impl Parse for style::properties::longhands::overflow_wrap::computed_value::T
impl Parse for style::properties::longhands::word_break::computed_value::T
impl Parse for style::properties::longhands::text_justify::computed_value::T
impl Parse for style::properties::longhands::white_space::computed_value::T
impl Parse for style::properties::longhands::text_rendering::computed_value::T
impl Parse for style::properties::longhands::list_style_position::computed_value::T
impl Parse for style::properties::longhands::list_style_type::computed_value::T
impl Parse for Keyword
impl Parse for style::properties::longhands::pointer_events::computed_value::T
impl Parse for style::properties::longhands::flex_direction::computed_value::T
impl Parse for style::properties::longhands::flex_wrap::computed_value::T
impl Parse for style::properties::longhands::justify_content::computed_value::T
impl Parse for style::properties::longhands::align_content::computed_value::T
impl Parse for style::properties::longhands::align_items::computed_value::T
impl Parse for style::properties::longhands::align_self::computed_value::T
impl Parse for style::properties::longhands::box_sizing::computed_value::T
impl Parse for style::properties::longhands::table_layout::computed_value::T
impl Parse for style::properties::longhands::unicode_bidi::computed_value::T