pub type EnumVariantWalker<'a> = Walker<'a, EnumVariantId>;
Expand description

Traverse an enum variant.

Aliased Type§

struct EnumVariantWalker<'a> {
    pub id: EnumVariantId,
    pub schema: &'a SqlSchema,
}

Fields§

§id: EnumVariantId

The identifier.

§schema: &'a SqlSchema

The schema for which the identifier is valid.

Implementations§

source§

impl<'a> EnumVariantWalker<'a>

source

pub fn enum(self) -> EnumWalker<'a>

The parent enum.

source

pub fn name(self) -> &'a str

The variant itself.

source§

impl<'a, Id> Walker<'a, Id>

source

pub fn walk<I>(self, other_id: I) -> Walker<'a, I>

Jump to the item identified by other_id.

Trait Implementations

source§

impl<'a, Id: Copy> Copy for Walker<'a, Id>

source§

impl<'a, Id: Clone> Clone for Walker<'a, Id>

source§

fn clone(&self) -> Walker<'a, Id>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<I: Debug> Debug for Walker<'_, I>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more