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

pub enum Mutability {
    Not,
    Mut,
}

§

§

Source§

Source

Source

Returns "" (empty string) or "mut " depending on the mutability.

Source

Returns "&" or "&mut " depending on the mutability.

Source

Returns "const" or "mut" depending on the mutability.

Source

Returns "" (empty string) or "mutably " depending on the mutability.

Source

Return true if self is mutable

Source

Return true if self is not mutable

§

§

§

§

§

§

§

§

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: