Enum reproto_core::RpReg [] [src]

pub enum RpReg {
    Type(Rc<Loc<RpTypeBody>>),
    Tuple(Rc<Loc<RpTupleBody>>),
    Interface(Rc<Loc<RpInterfaceBody>>),
    SubType(Rc<Loc<RpInterfaceBody>>, Rc<Loc<RpSubType>>),
    Enum(Rc<Loc<RpEnumBody>>),
    EnumVariant(Rc<Loc<RpEnumBody>>, Rc<Loc<RpVariant>>),
    Service(Rc<Loc<RpServiceBody>>),
}

Variants

Methods

impl RpReg
[src]

[src]

Get the name of the registered declaration.

[src]

Get the location of the registered declaration.

[src]

[src]

[src]

Get stringy kind of the registered type, if applicable.

This returns the base kind as the first member of the tuple. Then the registered type as the second (if applicable).

[src]

Check if registered type is an enum.

Trait Implementations

impl Debug for RpReg
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for RpReg
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for RpReg
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for RpReg

impl !Sync for RpReg