FieldsExtractor

Trait FieldsExtractor 

Source
pub trait FieldsExtractor<Source, Target> {
    type Remainder;

    // Required method
    fn extract_from(source: Source) -> Result<Target, Self::Remainder>;
}

Required Associated Types§

Required Methods§

Source

fn extract_from(source: Source) -> Result<Target, Self::Remainder>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<Source, Target> FieldsExtractor<Source, Target> for θ

Source§

type Remainder = Source

Source§

impl<Source, Target, Tag, Value, RestFields, Remainder> FieldsExtractor<Source, Target> for σ<ω<Tag, Value>, RestFields>
where Source: ExtractField<Tag, Value = Value>, Target: FromVariant<Tag, Value = Value>, RestFields: FieldsExtractor<<Source as ExtractField<Tag>>::Remainder, Target, Remainder = Remainder>,

Source§

type Remainder = Remainder