pub(crate) struct Capture {
pub(crate) name: Expr,
pub(crate) alias: Option<Ident>,
pub(crate) kind: CaptureKind,
}
Fields§
§name: Expr
§alias: Option<Ident>
§kind: CaptureKind
Implementations§
source§impl Capture
impl Capture
pub(crate) fn maybe_parse( attrs: &[Attribute], input: ParseStream<'_>, ) -> Result<Option<Self>>
pub(crate) fn alias(&self) -> TokenStream
pub(crate) fn outer_before_tokens( &self, crate_ident: &TokenStream, ) -> TokenStream
pub(crate) fn outer_after_tokens( &self, crate_ident: &TokenStream, closure_ident: &Ident, ) -> TokenStream
pub(crate) fn inner_before_tokens( &self, crate_ident: &TokenStream, weak_upgrade_failure_kind: &UpgradeBehaviour, upgrade_failure_closure_ident: &Ident, unit_return: Option<TokenStream>, ) -> TokenStream
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