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