Trait freya_testing::prelude::Parse

pub trait Parse: Sized {
    type Err;

    // Required method
    fn parse(value: &str) -> Result<Self, Self::Err>;
}

Required Associated Types§

type Err

Required Methods§

fn parse(value: &str) -> Result<Self, Self::Err>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl Parse for Alignment

§

type Err = ParseAlignmentError

§

fn parse(value: &str) -> Result<Alignment, <Alignment as Parse>::Err>

§

impl Parse for Color

§

type Err = ParseColorError

§

fn parse(value: &str) -> Result<Color, <Color as Parse>::Err>

§

impl Parse for Content

§

type Err = ParseContentError

§

fn parse(value: &str) -> Result<Content, <Content as Parse>::Err>

§

impl Parse for Gaps

§

type Err = ParseGapError

§

fn parse(value: &str) -> Result<Gaps, <Gaps as Parse>::Err>

§

impl Parse for Position

§

type Err = ParsePositionError

§

fn parse(value: &str) -> Result<Position, <Position as Parse>::Err>

§

impl Parse for Size

§

type Err = ParseSizeError

§

fn parse(value: &str) -> Result<Size, <Size as Parse>::Err>

§

impl Parse for SkFontStyle_Slant

§

type Err = ParseSlantError

§

fn parse( value: &str ) -> Result<SkFontStyle_Slant, <SkFontStyle_Slant as Parse>::Err>

§

impl Parse for TextDecoration

§

type Err = ParseTextDecorationError

§

fn parse(value: &str) -> Result<TextDecoration, <TextDecoration as Parse>::Err>

§

impl Parse for TextShadow

§

type Err = ParseTextShadowError

§

fn parse(value: &str) -> Result<TextShadow, <TextShadow as Parse>::Err>

§

impl Parse for Weight

§

type Err = ParseWeightError

§

fn parse(value: &str) -> Result<Weight, <Weight as Parse>::Err>

§

impl Parse for Width

§

type Err = ParseWidthError

§

fn parse(value: &str) -> Result<Width, <Width as Parse>::Err>

§

impl Parse for skia_textlayout_TextAlign

§

type Err = ParseTextAlignError

§

fn parse( value: &str ) -> Result<skia_textlayout_TextAlign, <skia_textlayout_TextAlign as Parse>::Err>

§

impl Parse for skia_textlayout_TextDecorationStyle

§

type Err = ParseTextDecorationStyleError

§

fn parse( value: &str ) -> Result<skia_textlayout_TextDecorationStyle, <skia_textlayout_TextDecorationStyle as Parse>::Err>

Implementors§