Trait darling_core::FromField

source ·
pub trait FromField: Sized {
    // Required method
    fn from_field(field: &Field) -> Result<Self>;
}
Expand description

Creates an instance by parsing an individual field and its attributes.

Required Methods§

source

fn from_field(field: &Field) -> Result<Self>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FromField for Visibility

source§

fn from_field(field: &Field) -> Result<Self>

source§

impl FromField for Type

source§

fn from_field(field: &Field) -> Result<Self>

source§

impl FromField for ()

source§

impl FromField for Vec<Attribute>

source§

fn from_field(field: &Field) -> Result<Self>

source§

impl FromField for Field

source§

fn from_field(field: &Field) -> Result<Self>

Implementors§