pub trait Parse: Sized {
    type Err;

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

Required Associated Types§

Required Methods§

source

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

Implementations on Foreign Types§

source§

impl Parse for TextDecorationStyle

source§

impl Parse for Slant

§

type Err = ParseSlantError

source§

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

source§

impl Parse for Width

§

type Err = ParseWidthError

source§

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

source§

impl Parse for TextDecoration

§

type Err = ParseTextDecorationError

source§

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

source§

impl Parse for Color

§

type Err = ParseColorError

source§

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

source§

impl Parse for Size

§

type Err = ParseSizeError

source§

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

source§

impl Parse for Weight

§

type Err = ParseWeightError

source§

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

source§

impl Parse for TextAlign

§

type Err = ParseTextAlignError

source§

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

source§

impl Parse for TextShadow

§

type Err = ParseTextShadowError

source§

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

source§

impl Parse for Gaps

§

type Err = ParseGapError

source§

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

source§

impl Parse for DisplayMode

§

type Err = ParseDisplayModeError

source§

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

Implementors§