ImplPolarity in rustc_ast::ast - Rust (original) (raw)
pub enum ImplPolarity {
Positive,
Negative(Span),
}Variants§
Positive
impl Trait for Type
Negative(Span)
impl !Trait for Type
Trait Implementations§
impl Clone for ImplPolarity
impl Debug for ImplPolarity
impl<__D: SpanDecoder> Decodable<__D> for ImplPolarity
fn decode(__decoder: &mut __D) -> Self
impl<__E: SpanEncoder> Encodable<__E> for ImplPolarity
fn encode(&self, __encoder: &mut __E)
impl<__CTX> HashStable<__CTX> for ImplPolarity
fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)
impl<V: MutVisitor> MutVisitable for ImplPolarity
type Extra = ()
fn visit_mut(&mut self, visitor: &mut V, _extra: Self::Extra) -> V::Result
impl<__V> MutWalkable<__V> for ImplPolarity
fn walk_mut(&mut self, __visitor: &mut __V)
impl PartialEq for ImplPolarity
fn eq(&self, other: &ImplPolarity) -> bool
Tests for self and other values to be equal, and is used by ==.
fn ne(&self, other: &Rhs) -> bool
Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
impl<'a, V: Visitor<'a>> Visitable<'a, V> for ImplPolarity
type Extra = ()
fn visit(&'a self, visitor: &mut V, _extra: Self::Extra) -> V::Result
impl<'__ast, __V> Walkable<'__ast, __V> for ImplPolarity
fn walk_ref(&'__ast self, __visitor: &mut __V) -> __V::Result
impl Copy for ImplPolarity
impl StructuralPartialEq for ImplPolarity
Auto Trait Implementations§
impl DynSend for ImplPolarity
impl DynSync for ImplPolarity
impl Freeze for ImplPolarity
impl RefUnwindSafe for ImplPolarity
impl Send for ImplPolarity
impl Sync for ImplPolarity
impl Unpin for ImplPolarity
impl UnwindSafe for ImplPolarity
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 12 bytes
Size for each variant:
Positive: 0 bytesNegative: 8 bytes