Movability in rustc_ast::ast - Rust (original) (raw)

pub enum Movability {
    Static,
    Movable,
}

Expand description

The movability of a coroutine / closure literal: whether a coroutine contains self-references, causing it to be !Unpin.

§

May contain self-references, !Unpin.

§

Must not contain self-references, Unpin.

§

§

§

§

§

§

§

§

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: 1 byte

Size for each variant: