Enum librsnek::compiler::scope::Descriptor [] [src]

pub enum Descriptor<T> {
    Base(T),
    Module(T),
    Function(T),
}

Generic Descriptor enum

Variants

Methods

impl Descriptor<Scope>
[src]

Trait Implementations

impl<T: Debug> Debug for Descriptor<T>
[src]

Formats the value using the given formatter.

impl<T: PartialEq> PartialEq for Descriptor<T>
[src]

This method tests for self and other values to be equal, and is used

This method tests for !=.

impl<T: Eq> Eq for Descriptor<T>
[src]

impl<T: Ord> Ord for Descriptor<T>
[src]

This method returns an Ordering between self and other.

impl<T: PartialOrd> PartialOrd for Descriptor<T>
[src]

This method returns an ordering between self and other values if one exists.

This method tests less than (for self and other) and is used by the < operator.

This method tests less than or equal to (for self and other) and is used by the <=

This method tests greater than (for self and other) and is used by the > operator.

This method tests greater than or equal to (for self and other) and is used by the >=

impl<T: Hash> Hash for Descriptor<T>
[src]

Feeds this value into the given [Hasher].

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

impl<T: Copy> Copy for Descriptor<T>
[src]

impl<T: Clone> Clone for Descriptor<T>
[src]

Returns a copy of the value.

Performs copy-assignment from source.

impl Node for Descriptor<Scope>
[src]