Struct syn::ImplItemConst
source · [−]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
sourceimpl From<ImplItemConst> for ImplItem
impl From<ImplItemConst> for ImplItem
sourcefn from(e: ImplItemConst) -> ImplItem
fn from(e: ImplItemConst) -> ImplItem
Converts to this type from the input type.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more