[−][src]Struct rune::ast::ItemVariant
An enum variant.
Fields
id: Option<Id>
Opaque identifier of variant.
attributes: Vec<Attribute>
The attributes associated with the variant.
name: Ident
The name of the variant.
body: ItemVariantBody
The body of the variant.
Trait Implementations
impl Clone for ItemVariant
[src]
pub fn clone(&self) -> ItemVariant
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ItemVariant
[src]
impl Eq for ItemVariant
[src]
impl Parse for ItemVariant
[src]
pub fn parse(parser: &mut Parser<'_>) -> Result<Self, ParseError>
[src]
impl PartialEq<ItemVariant> for ItemVariant
[src]
pub fn eq(&self, other: &ItemVariant) -> bool
[src]
pub fn ne(&self, other: &ItemVariant) -> bool
[src]
impl Spanned for ItemVariant
[src]
impl StructuralEq for ItemVariant
[src]
impl StructuralPartialEq for ItemVariant
[src]
impl ToTokens for ItemVariant
[src]
pub fn to_tokens(&self, context: &MacroContext, stream: &mut TokenStream)
[src]
Auto Trait Implementations
impl RefUnwindSafe for ItemVariant
[src]
impl Send for ItemVariant
[src]
impl Sync for ItemVariant
[src]
impl Unpin for ItemVariant
[src]
impl UnwindSafe for ItemVariant
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,