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),
}🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Variants
Const(P<Ty>, Option<P<Expr>>)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Method(MethodSig, Option<P<Block>>)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Type(TyParamBounds, Option<P<Ty>>)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Macro(Mac)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Trait Implementations
impl Clone for TraitItemKind[src]
impl Clone for TraitItemKindfn clone(&self) -> TraitItemKind[src]
fn clone(&self) -> TraitItemKindReturns 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)Performs copy-assignment from source. Read more
impl PartialEq for TraitItemKind[src]
impl PartialEq for TraitItemKindfn eq(&self, __arg_0: &TraitItemKind) -> bool[src]
fn eq(&self, __arg_0: &TraitItemKind) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &TraitItemKind) -> bool[src]
fn ne(&self, __arg_0: &TraitItemKind) -> boolThis method tests for !=.
impl Eq for TraitItemKind[src]
impl Eq for TraitItemKindimpl Encodable for TraitItemKind[src]
impl Encodable for TraitItemKindfn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl Decodable for TraitItemKind[src]
impl Decodable for TraitItemKindfn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<TraitItemKind, __D::Error>[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<TraitItemKind, __D::Error>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl Hash for TraitItemKind[src]
impl Hash for TraitItemKindfn hash<__H: Hasher>(&self, __arg_0: &mut __H)[src]
fn hash<__H: Hasher>(&self, __arg_0: &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, Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for TraitItemKind[src]
impl Debug for TraitItemKindAuto Trait Implementations
impl !Send for TraitItemKind
impl !Send for TraitItemKindimpl !Sync for TraitItemKind
impl !Sync for TraitItemKind