Struct MetaList
pub struct MetaList { pub path: Path, pub delimiter: MacroDelimiter, pub tokens: TokenStream }
A structured list within an attribute, like derive(Copy, Clone).
Fields
path: Pathdelimiter: MacroDelimitertokens: TokenStream
Implementations
impl MetaList
fn parse_args<T: Parse>(&self) -> Result<T>fn parse_args_with<F: Parser>(&self, parser: F) -> Result<F::Output>fn parse_nested_meta(&self, logic: impl FnMut(ParseNestedMeta<'_>) -> Result<()>) -> Result<()>
Trait Implementations
impl Clone for MetaList
fn clone(&self) -> Self
impl Parse for MetaList
fn parse(input: ParseStream<'_>) -> Result<Self>
impl ToTokens for MetaList
fn to_tokens(&self, tokens: &mut TokenStream)
Auto Trait Implementations
impl !Send for MetaList
impl !Sync for MetaList
impl Freeze for MetaList
impl RefUnwindSafe for MetaList
impl Unpin for MetaList
impl UnsafeUnpin for MetaList
impl UnwindSafe for MetaList
Blanket Implementations
impl<T> Any for MetaList
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for MetaList
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for MetaList
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for MetaList
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for MetaList
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Spanned for MetaList
where
T: Spanned + ?Sized,
fn span(&self) -> Span
impl<T> ToOwned for MetaList
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for MetaList
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for MetaList
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for MetaList
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>