Enum agnes::field::FieldIdent [] [src]

pub enum FieldIdent {
    Index(usize),
    Name(String),
}

Identifier for a field in the source.

Variants

Unnamed field identifier, using the field index in the source file.

Field name in the source file

Methods

impl FieldIdent
[src]

[src]

Produce a string representation of the field identifier. Either the name if of the FieldIdent::Name variant, or the string "Field #" if using the FieldIdent::Index variant.

Trait Implementations

impl Debug for FieldIdent
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for FieldIdent
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for FieldIdent
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for FieldIdent
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for FieldIdent
[src]

impl Hash for FieldIdent
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl From<usize> for FieldIdent
[src]

[src]

Performs the conversion.

impl<'a> From<&'a str> for FieldIdent
[src]

[src]

Performs the conversion.

impl From<String> for FieldIdent
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for FieldIdent

impl Sync for FieldIdent