Enum rustc_ast::ast::AngleBracketedArg [−][src]
pub enum AngleBracketedArg {
Arg(GenericArg),
Constraint(AssocTyConstraint),
}
Expand description
Either an argument for a parameter e.g., 'a
, Vec<u8>
, 0
,
or a constraint on an associated item, e.g., Item = String
or Item: Bound
.
Variants
Arg(GenericArg)
Argument for a generic parameter.
Tuple Fields of Arg
0: GenericArg
Constraint(AssocTyConstraint)
Constraint for an associated item.
Tuple Fields of Constraint
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for AngleBracketedArg
impl !Send for AngleBracketedArg
impl !Sync for AngleBracketedArg
impl Unpin for AngleBracketedArg
impl !UnwindSafe for AngleBracketedArg
Blanket Implementations
Mutably borrows from an owned value. Read more
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: 128 bytes
Size for each variant:
Arg
: 24 bytesConstraint
: 120 bytes