Enum syn_helpers::NamedOrUnnamedField
source · pub enum NamedOrUnnamedField<'a> {
Named(&'a NamedField),
Unnamed(&'a UnnamedField),
}
Expand description
Either NamedField or UnnamedField
Variants§
Named(&'a NamedField)
Unnamed(&'a UnnamedField)
Trait Implementations§
source§impl Field for NamedOrUnnamedField<'_>
impl Field for NamedOrUnnamedField<'_>
fn get_type_that_needs_constraint(&self) -> Option<Type>
fn get_pattern_with_config(
&self,
type_of_self: TypeOfSelf,
name_postfix: &'static str
) -> TokenStream
fn get_type(&self) -> &Type
source§fn get_pattern(&self, type_of_self: TypeOfSelf) -> TokenStream
fn get_pattern(&self, type_of_self: TypeOfSelf) -> TokenStream
Get a pattern for reading this field