Enum macrohelper::bodykind::BodyKind
[−]
[src]
pub enum BodyKind { Enum(Enumerator), Struct(Structure), }
Variants
Enum(Enumerator)
Struct(Structure)
Methods
impl BodyKind
[src]
fn from_body(x: &Body) -> Result<BodyKind, String>
Build from syn
's Body representation
fn is_enum(&self) -> bool
fn is_struct(&self) -> bool
fn get_struct<'a>(&'a self) -> Option<&'a Structure>
Returns a structure if that is possible
fn get_enum<'a>(&'a self) -> Option<&'a Enumerator>
Returns a Enum if that is possible
Trait Implementations
impl Clone for BodyKind
[src]
fn clone(&self) -> BodyKind
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more