Struct syn::ImplItemConst [−][src]
pub struct ImplItemConst { pub attrs: Vec<Attribute>, pub vis: Visibility, pub defaultness: Option<Default>, pub const_token: Const, pub ident: Ident, pub colon_token: Colon, pub ty: Type, pub eq_token: Eq, pub expr: Expr, pub semi_token: Semi, }
An associated constant within an impl block.
This type is available only if Syn is built with the "full"
feature.
Fields
attrs: Vec<Attribute>
vis: Visibility
defaultness: Option<Default>
const_token: Const
ident: Ident
colon_token: Colon
ty: Type
eq_token: Eq
expr: Expr
semi_token: Semi
Trait Implementations
impl Clone for ImplItemConst
[src]
impl Clone for ImplItemConst
[src]fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl From<ImplItemConst> for ImplItem
[src]
impl From<ImplItemConst> for ImplItem
[src]fn from(e: ImplItemConst) -> ImplItem
[src]
impl Hash for ImplItemConst
[src]
impl Hash for ImplItemConst
[src]impl Parse for ImplItemConst
[src]
impl Parse for ImplItemConst
[src]fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<ImplItemConst> for ImplItemConst
[src]
impl PartialEq<ImplItemConst> for ImplItemConst
[src]impl ToTokens for ImplItemConst
[src]
impl ToTokens for ImplItemConst
[src]