Enum rustc::ty::VariantKind
[−]
[src]
pub enum VariantKind { Struct, Tuple, Unit, }
Unstable (
rustc_private
)Variants
Struct
Unstable (
rustc_private
)Tuple
Unstable (
rustc_private
)Unit
Unstable (
rustc_private
)Methods
impl VariantKind
[src]
fn from_variant_data(vdata: &VariantData) -> Self
Trait Implementations
Derived Implementations
impl Decodable for VariantKind
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<VariantKind, __D::Error>
impl Encodable for VariantKind
[src]
impl Debug for VariantKind
[src]
impl Hash for VariantKind
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl Eq for VariantKind
[src]
impl PartialEq for VariantKind
[src]
fn eq(&self, __arg_0: &VariantKind) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Copy for VariantKind
[src]
impl Clone for VariantKind
[src]
fn clone(&self) -> VariantKind
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more