Field

Trait Field 

Source
pub trait Field<Name> {
    type Type;

    // Required method
    fn field(self) -> Self::Type;
}
Expand description

Defines a Field for a struct with a specific type.

Required Associated Types§

Source

type Type

The type of the field.

Required Methods§

Source

fn field(self) -> Self::Type

Returns the value of the field.

Implementors§