pub enum EnumVariantBody {
Tuple(Vec<Attributed<StructDefinitionFieldUnnamed>>),
Struct(StructDefinitionBodyBrace),
Unit(Option<Attributed<Expression>>),
}Variants§
Tuple(Vec<Attributed<StructDefinitionFieldUnnamed>>)
Struct(StructDefinitionBodyBrace)
Unit(Option<Attributed<Expression>>)
Implementations§
Source§impl EnumVariantBody
impl EnumVariantBody
pub fn into_tuple(self) -> Option<Vec<Attributed<StructDefinitionFieldUnnamed>>>
pub fn into_struct(self) -> Option<StructDefinitionBodyBrace>
pub fn into_unit(self) -> Option<Option<Attributed<Expression>>>
pub fn as_tuple(&self) -> Option<&Vec<Attributed<StructDefinitionFieldUnnamed>>>
pub fn as_struct(&self) -> Option<&StructDefinitionBodyBrace>
pub fn as_unit(&self) -> Option<&Option<Attributed<Expression>>>
pub fn is_tuple(&self) -> bool
pub fn is_struct(&self) -> bool
pub fn is_unit(&self) -> bool
Trait Implementations§
Source§impl Debug for EnumVariantBody
impl Debug for EnumVariantBody
Auto Trait Implementations§
impl Freeze for EnumVariantBody
impl RefUnwindSafe for EnumVariantBody
impl Send for EnumVariantBody
impl Sync for EnumVariantBody
impl Unpin for EnumVariantBody
impl UnsafeUnpin for EnumVariantBody
impl UnwindSafe for EnumVariantBody
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more