Enum syn::NestedMeta [−][src]
Expand description
Element of a compile-time attribute list.
This type is available only if Syn is built with the "derive" or "full"
feature.
Variants
Meta(Meta)A structured meta item, like the Copy in #[derive(Copy)] which
would be a nested Meta::Path.
Lit(Lit)A Rust literal, like the "new_name" in #[rename("new_name")].
Trait Implementations
impl Clone for NestedMeta[src]
impl Clone for NestedMeta[src]impl Debug for NestedMeta[src]
impl Debug for NestedMeta[src]impl From<Lit> for NestedMeta[src]
impl From<Lit> for NestedMeta[src]fn from(e: Lit) -> NestedMeta[src]
fn from(e: Lit) -> NestedMeta[src]Performs the conversion.
impl From<Meta> for NestedMeta[src]
impl From<Meta> for NestedMeta[src]fn from(e: Meta) -> NestedMeta[src]
fn from(e: Meta) -> NestedMeta[src]Performs the conversion.
impl Hash for NestedMeta[src]
impl Hash for NestedMeta[src]impl Parse for NestedMeta[src]
impl Parse for NestedMeta[src]fn parse(input: ParseStream<'_>) -> Result<Self>[src]
impl PartialEq<NestedMeta> for NestedMeta[src]
impl PartialEq<NestedMeta> for NestedMeta[src]impl ToTokens for NestedMeta[src]
impl ToTokens for NestedMeta[src]fn to_tokens(&self, tokens: &mut TokenStream)[src]
fn to_tokens(&self, tokens: &mut TokenStream)[src]Write self to the given TokenStream. Read more
fn to_token_stream(&self) -> TokenStream[src]
fn to_token_stream(&self) -> TokenStream[src]Convert self directly into a TokenStream object. Read more
fn into_token_stream(self) -> TokenStream[src]
fn into_token_stream(self) -> TokenStream[src]Convert self directly into a TokenStream object. Read more
impl Eq for NestedMeta[src]
Auto Trait Implementations
impl RefUnwindSafe for NestedMeta
impl !Send for NestedMeta
impl !Sync for NestedMeta
impl Unpin for NestedMeta
impl UnwindSafe for NestedMeta
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more