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>, }
This is supported on crate features
full
or derive
only.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]This is supported on crate feature
clone-impls
only.fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ConstParam
[src]
impl Debug for ConstParam
[src]This is supported on crate feature
extra-traits
only.impl Eq for ConstParam
[src]
impl Eq for ConstParam
[src]This is supported on crate feature
extra-traits
only.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]This is supported on crate feature
extra-traits
only.impl Parse for ConstParam
[src]
impl Parse for ConstParam
[src]This is supported on crate feature
parsing
only.fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<ConstParam> for ConstParam
[src]
impl PartialEq<ConstParam> for ConstParam
[src]This is supported on crate feature
extra-traits
only.impl ToTokens for ConstParam
[src]
impl ToTokens for ConstParam
[src]This is supported on crate feature
printing
only.fn to_tokens(&self, tokens: &mut TokenStream)
[src]
pub fn to_token_stream(&self) -> TokenStream
[src]
pub fn into_token_stream(self) -> TokenStream
[src]
Auto Trait Implementations
impl RefUnwindSafe for ConstParam
impl RefUnwindSafe for ConstParam
impl !Send for ConstParam
impl !Send for ConstParam
impl !Sync for ConstParam
impl !Sync for ConstParam
impl Unpin for ConstParam
impl Unpin for ConstParam
impl UnwindSafe for ConstParam
impl UnwindSafe for ConstParam