Enum syntax::ast::TraitItemKind [−][src]
pub enum TraitItemKind { Const(P<Ty>, Option<P<Expr>>), Method(MethodSig, Option<P<Block>>), Type(TyParamBounds, Option<P<Ty>>), Macro(Mac), }
Variants
Const(P<Ty>, Option<P<Expr>>)
Method(MethodSig, Option<P<Block>>)
Type(TyParamBounds, Option<P<Ty>>)
Macro(Mac)
Trait Implementations
impl Clone for TraitItemKind
[src]
impl Clone for TraitItemKind
fn clone(&self) -> TraitItemKind
[src]
fn clone(&self) -> TraitItemKind
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for TraitItemKind
[src]
impl PartialEq for TraitItemKind
fn eq(&self, other: &TraitItemKind) -> bool
[src]
fn eq(&self, other: &TraitItemKind) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &TraitItemKind) -> bool
[src]
fn ne(&self, other: &TraitItemKind) -> bool
This method tests for !=
.
impl Eq for TraitItemKind
[src]
impl Eq for TraitItemKind
impl Encodable for TraitItemKind
[src]
impl Encodable for TraitItemKind
impl Decodable for TraitItemKind
[src]
impl Decodable for TraitItemKind
impl Hash for TraitItemKind
[src]
impl Hash for TraitItemKind
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for TraitItemKind
[src]
impl Debug for TraitItemKind
Auto Trait Implementations
impl !Send for TraitItemKind
impl !Send for TraitItemKind
impl !Sync for TraitItemKind
impl !Sync for TraitItemKind