[][src]Enum rustc_ast::ast::CaptureBy

pub enum CaptureBy {

A capture clause used in closures and async blocks.



move |x| y + x.


move keyword was not specified.

Trait Implementations

impl Clone for CaptureBy[src]

impl Copy for CaptureBy[src]

impl Debug for CaptureBy[src]

impl<__D: Decoder> Decodable<__D> for CaptureBy[src]

impl<__E: Encoder> Encodable<__E> for CaptureBy[src]

impl<__CTX> HashStable<__CTX> for CaptureBy where
    __CTX: HashStableContext

impl PartialEq<CaptureBy> for CaptureBy[src]

impl StructuralPartialEq for CaptureBy[src]

Auto Trait Implementations

impl RefUnwindSafe for CaptureBy[src]

impl Send for CaptureBy[src]

impl Sync for CaptureBy[src]

impl Unpin for CaptureBy[src]

impl UnwindSafe for CaptureBy[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.