Struct rune::ast::Field [−][src]
A field as part of a struct or a tuple body.
Examples
use rune::{testing, ast}; testing::roundtrip::<ast::Field>("a"); testing::roundtrip::<ast::Field>("#[x] a");
Fields
attributes: Vec<Attribute>
Attributes associated with field.
visibility: Visibility
The visibility of the field
name: Ident
Name of the field.
Trait Implementations
impl Clone for Field
[src]
impl Debug for Field
[src]
impl Eq for Field
[src]
impl Parse for Field
[src]
fn parse(parser: &mut Parser<'_>) -> Result<Self, ParseError>
[src]
impl PartialEq<Field> for Field
[src]
impl Spanned for Field
[src]
impl StructuralEq for Field
[src]
impl StructuralPartialEq for Field
[src]
impl ToTokens for Field
[src]
fn to_tokens(&self, context: &MacroContext, stream: &mut TokenStream)
[src]
Auto Trait Implementations
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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>,