Defaultness in rustc_ast::ast - Rust (original) (raw)
pub enum Defaultness {
Default(Span),
Final,
}Expand description
Item defaultness. For details see the RFC #2532.
Variants§
Default(Span)
Final
Trait Implementations§
impl Clone for Defaultness
impl Debug for Defaultness
impl<__D: SpanDecoder> Decodable<__D> for Defaultness
fn decode(__decoder: &mut __D) -> Self
impl<__E: SpanEncoder> Encodable<__E> for Defaultness
fn encode(&self, __encoder: &mut __E)
impl<__CTX> HashStable<__CTX> for Defaultness
fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)
impl<V: MutVisitor> MutVisitable for Defaultness
type Extra = ()
fn visit_mut(&mut self, visitor: &mut V, _extra: Self::Extra) -> V::Result
impl<__V> MutWalkable<__V> for Defaultness
fn walk_mut(&mut self, __visitor: &mut __V)
impl PartialEq for Defaultness
fn eq(&self, other: &Defaultness) -> 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 Defaultness
type Extra = ()
fn visit(&'a self, visitor: &mut V, _extra: Self::Extra) -> V::Result
impl<'__ast, __V> Walkable<'__ast, __V> for Defaultness
fn walk_ref(&'__ast self, __visitor: &mut __V) -> __V::Result
impl Copy for Defaultness
impl StructuralPartialEq for Defaultness
Auto Trait Implementations§
impl DynSend for Defaultness
impl DynSync for Defaultness
impl Freeze for Defaultness
impl RefUnwindSafe for Defaultness
impl Send for Defaultness
impl Sync for Defaultness
impl Unpin for Defaultness
impl UnwindSafe for Defaultness
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:
Default: 8 bytesFinal: 0 bytes