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,
}
Expand description
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
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ImplItemConst
impl !Send for ImplItemConst
impl !Sync for ImplItemConst
impl Unpin for ImplItemConst
impl UnwindSafe for ImplItemConst
Blanket Implementations
Mutably borrows from an owned value. Read more