Struct field_ref::EnumFieldRef [] [src]

pub struct EnumFieldRef<E, T> { /* fields omitted */ }

A OptionFieldRef references a field within an enum constant.

Methods

impl<E, T> EnumFieldRef<E, T>
[src]

[src]

Creates a new EnumFieldRef from a field extracting function and a mutable field extracting function.

Trait Implementations

impl<'x, E: 'x, T: 'x> OptionFieldRef<'x> for EnumFieldRef<E, T>
[src]

[src]

Get a reference of value in an object to which OptionFieldRef refers. Read more

[src]

Get a mutable reference of value in an object to which OptionFieldRef refers. Read more

[src]

Chains two field references. Read more

impl<E, T> Clone for EnumFieldRef<E, T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<E, T> Copy for EnumFieldRef<E, T>
[src]

Auto Trait Implementations

impl<E, T> Send for EnumFieldRef<E, T>

impl<E, T> Sync for EnumFieldRef<E, T>