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
sourceimpl Clone for ClosureBinder
impl Clone for ClosureBinder
sourcefn clone(&self) -> ClosureBinder
fn clone(&self) -> ClosureBinder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ClosureBinder
impl Debug for ClosureBinder
sourceimpl<__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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
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: 24 bytes
Size for each variant:
NotPresent
: 0 bytesFor
: 24 bytes