Enum rustc_ast::ast::ClosureBinder
source · pub enum ClosureBinder {
NotPresent,
For {
span: Span,
generic_params: P<[GenericParam]>,
},
}
Expand description
Closure lifetime binder, for<'a, 'b>
in for<'a, 'b> |_: &'a (), _: &'b ()|
.
Variants§
NotPresent
The binder is not present, all closure lifetimes are inferred.
For
Fields
§
span: Span
Span of the whole for<>
clause
for<'a, 'b> |_: &'a (), _: &'b ()| { ... }
^^^^^^^^^^^ -- this
§
generic_params: P<[GenericParam]>
Lifetimes in the for<>
closure
for<'a, 'b> |_: &'a (), _: &'b ()| { ... }
^^^^^^ -- this
The binder is present.
Trait Implementations§
source§impl Clone for ClosureBinder
impl Clone for ClosureBinder
source§fn clone(&self) -> ClosureBinder
fn clone(&self) -> ClosureBinder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ClosureBinder
impl Debug for ClosureBinder
source§impl<__D: Decoder> Decodable<__D> for ClosureBinder
impl<__D: Decoder> Decodable<__D> for ClosureBinder
Auto Trait Implementations§
impl !RefUnwindSafe for ClosureBinder
impl !Send for ClosureBinder
impl !Sync for ClosureBinder
impl Unpin for ClosureBinder
impl !UnwindSafe for ClosureBinder
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: 24 bytes
Size for each variant:
NotPresent
: 0 bytesFor
: 24 bytes