[][src]Trait pb_jelly::OpenProtoEnum

pub trait OpenProtoEnum: ProtoEnum {
    fn name(self) -> Option<&'static str>;
fn is_known(self) -> bool; }

Trait implemented by enums to help with serialization and deserialization.

Note that this is not a closed enum.

Required methods

fn name(self) -> Option<&'static str>

Get the name of this variant, if it is known.

fn is_known(self) -> bool

Whether or not this enum variant is "known" (i.e. there is an associate constant with it).

Loading content...

Implementors

Loading content...