GenericBound in rustc_ast::ast - Rust (original) (raw)
pub enum GenericBound {
Trait(PolyTraitRef),
Outlives(Lifetime),
Use(ThinVec<PreciseCapturingArg>, Span),
}Variants§
Implementations§
Trait Implementations§
impl Clone for GenericBound
impl Debug for GenericBound
impl<__D: SpanDecoder> Decodable<__D> for GenericBound
fn decode(__decoder: &mut __D) -> Self
impl<__E: SpanEncoder> Encodable<__E> for GenericBound
fn encode(&self, __encoder: &mut __E)
impl<V: MutVisitor> MutVisitable for GenericBound
type Extra = BoundKind
fn visit_mut(&mut self, visitor: &mut V, extra: Self::Extra) -> V::Result
impl<__V> MutWalkable<__V> for GenericBound
fn walk_mut(&mut self, __visitor: &mut __V)
impl<'a, V: Visitor<'a>> Visitable<'a, V> for GenericBound
type Extra = BoundKind
fn visit(&'a self, visitor: &mut V, extra: Self::Extra) -> V::Result
impl<'__ast, __V> Walkable<'__ast, __V> for GenericBound
fn walk_ref(&'__ast self, __visitor: &mut __V) -> __V::Result
Auto Trait Implementations§
impl DynSend for GenericBound
impl DynSync for GenericBound
impl Freeze for GenericBound
impl RefUnwindSafe for GenericBound
impl Send for GenericBound
impl Sync for GenericBound
impl Unpin for GenericBound
impl UnwindSafe for GenericBound
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: 88 bytes
Size for each variant:
Trait: 88 bytesOutlives: 16 bytesUse: 16 bytes