struct Capture {
name: TokenStream,
alias: Option<Ident>,
kind: CaptureKind,
start: Span,
}
Fields§
§name: TokenStream
§alias: Option<Ident>
§kind: CaptureKind
§start: Span
Implementations§
source§impl Capture
impl Capture
fn alias(&self) -> TokenStream
fn outer_before_tokens(&self, crate_ident: &TokenStream) -> TokenStream
fn outer_after_tokens( &self, crate_ident: &TokenStream, closure_ident: &Ident, ) -> TokenStream
fn inner_before_tokens(&self, crate_ident: &TokenStream) -> TokenStream
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Capture
impl RefUnwindSafe for Capture
impl !Send for Capture
impl !Sync for Capture
impl Unpin for Capture
impl UnwindSafe for Capture
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more