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 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§
Source§impl Clone for ImplItemConst
impl Clone for ImplItemConst
Source§fn clone(&self) -> ImplItemConst
fn clone(&self) -> ImplItemConst
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ImplItemConst
impl Debug for ImplItemConst
Source§impl From<ImplItemConst> for ImplItem
impl From<ImplItemConst> for ImplItem
Source§fn from(e: ImplItemConst) -> ImplItem
fn from(e: ImplItemConst) -> ImplItem
Converts to this type from the input type.
Source§impl Hash for ImplItemConst
impl Hash for ImplItemConst
Source§impl PartialEq for ImplItemConst
impl PartialEq for ImplItemConst
Source§impl Synom for ImplItemConst
impl Synom for ImplItemConst
Source§impl ToTokens for ImplItemConst
impl ToTokens for ImplItemConst
impl Eq for ImplItemConst
impl StructuralPartialEq for ImplItemConst
Auto Trait Implementations§
impl Freeze for ImplItemConst
impl RefUnwindSafe for ImplItemConst
impl !Send for ImplItemConst
impl !Sync for ImplItemConst
impl Unpin for ImplItemConst
impl UnwindSafe for ImplItemConst
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Spanned for Twhere
T: ToTokens,
impl<T> Spanned for Twhere
T: ToTokens,
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.