Enum syntax::ast::GenericBound[][src]

pub enum GenericBound {
    Trait(PolyTraitRefTraitBoundModifier),
    Outlives(Lifetime),
}

The AST represents all type param bounds as types. typeck::collect::compute_bounds matches these against the "special" built-in traits (see middle::lang_items) and detects Copy, Send and Sync.

Variants

Methods

impl GenericBound
[src]

Trait Implementations

impl Clone for GenericBound
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Encodable for GenericBound
[src]

impl Decodable for GenericBound
[src]

impl Debug for GenericBound
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for GenericBound

impl !Sync for GenericBound