FieldsExt

Trait FieldsExt 

Source
pub(crate) trait FieldsExt: Len {
    // Provided method
    fn validate_type<'t>(
        &self,
        ty: &'t Type,
    ) -> Result<Either<Iter<'t, Type>, Once<&'t Type>>> { ... }
}
Expand description

syn::Fields extension.

Provided Methods§

Source

fn validate_type<'t>( &self, ty: &'t Type, ) -> Result<Either<Iter<'t, Type>, Once<&'t Type>>>

Validates the provided syn::Type against these syn::Fields.

Implementors§

Source§

impl<T: Len + ?Sized> FieldsExt for T