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

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

Identifier for a field in the source.

Variants

Index(usize)

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

Name(String)

Field name in the source file

Methods

impl FieldIdent[src]

pub fn to_string(&self) -> String[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 Clone for FieldIdent[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<FieldIdent> for FieldIdent[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Eq for FieldIdent[src]

impl From<usize> for FieldIdent[src]

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

impl From<String> for FieldIdent[src]

impl<'a, T> From<&'a T> for FieldIdent where
    FieldIdent: From<T>,
    T: Clone
[src]

impl Hash for FieldIdent[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

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

impl Display for FieldIdent[src]

impl Debug for FieldIdent[src]

Auto Trait Implementations

impl Send for FieldIdent

impl Sync for FieldIdent

Blanket Implementations

impl<T> IntoLabeled for T[src]

impl<T> HasLabels for T[src]

impl<Needle, Haystack> HasLabels for Haystack where
    Haystack: Member<Needle, IsMember = B1>,
    Needle: Label
[src]

impl<Frames, Store> JoinIntoStore for Frames[src]

type Output = Store

The output type after augmenting Store.

impl<Frames> AssocDataIndexCons for Frames[src]

type Output = Nil

Type of associated data index cons-list.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<Q, K> Equivalent for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

impl<Q, K> Equivalent for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Same for T[src]

type Output = T

Should always be Self