Struct syn::ConstParam [−][src]
pub struct ConstParam { pub attrs: Vec<Attribute>, pub const_token: Const, pub ident: Ident, pub colon_token: Colon, pub ty: Type, pub eq_token: Option<Eq>, pub default: Option<Expr>, }
A const generic parameter: const LENGTH: usize
.
This type is available only if Syn is built with the "derive"
or
"full"
feature.
Fields
attrs: Vec<Attribute>
const_token: Const
ident: Ident
colon_token: Colon
ty: Type
eq_token: Option<Eq>
default: Option<Expr>
Trait Implementations
impl Clone for ConstParam
[src]
impl Clone for ConstParam
[src]fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl From<ConstParam> for GenericParam
[src]
impl From<ConstParam> for GenericParam
[src]fn from(e: ConstParam) -> GenericParam
[src]
impl Hash for ConstParam
[src]
impl Hash for ConstParam
[src]impl Parse for ConstParam
[src]
impl Parse for ConstParam
[src]fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<ConstParam> for ConstParam
[src]
impl PartialEq<ConstParam> for ConstParam
[src]impl ToTokens for ConstParam
[src]
impl ToTokens for ConstParam
[src]