[][src]Struct moore::name::Name

pub struct Name(pub u32);

A name is a lightweight 32 bit tag that refers to a string in a name table. During parsing, encountered strings are inserted into the name table and only the corresponding tag is kept in the token. Names which have their most significant bit set represent case sensitive names, such as for extended identifiers.

Implementations

impl Name[src]

pub fn is_case_sensitive(&self) -> bool[src]

Check if the name is case sensitive.

pub fn as_str(self) -> RcStr[src]

Return the string representation of this name.

Trait Implementations

impl Clone for Name[src]

impl Copy for Name[src]

impl Debug for Name[src]

impl Display for Name[src]

impl Eq for Name[src]

impl<'a> ForEachNode<'a> for Name

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

impl Hash for Name[src]

impl Into<String> for Name[src]

impl Ord for Name[src]

impl PartialEq<Name> for Name[src]

impl PartialOrd<Name> for Name[src]

impl StructuralEq for Name[src]

impl StructuralPartialEq for Name[src]

impl<'a> WalkVisitor<'a> for Name

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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

type Owned = T

The resulting type after obtaining ownership.

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.