Enum rustc::ty::Variance
[−]
[src]
pub enum Variance { Covariant, Invariant, Contravariant, Bivariant, }
Unstable (
rustc_private
)Variants
Covariant
Unstable (
rustc_private
)Invariant
Unstable (
rustc_private
)Contravariant
Unstable (
rustc_private
)Bivariant
Unstable (
rustc_private
)Trait Implementations
impl Debug for Variance
[src]
Derived Implementations
impl Copy for Variance
[src]
impl Encodable for Variance
[src]
impl Decodable for Variance
[src]
impl PartialEq for Variance
[src]
fn eq(&self, __arg_0: &Variance) -> 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 Clone for Variance
[src]
fn clone(&self) -> Variance
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