struct DeduceReadOnly {
    mutable_args: BitSet<usize>,
}
Expand description

A visitor that determines which arguments have been mutated. We can’t use the mutability field on LocalDecl for this because it has no meaning post-optimization.

Fields§

§mutable_args: BitSet<usize>

Each bit is indexed by argument number, starting at zero (so 0 corresponds to local decl 1). The bit is true if the argument may have been mutated or false if we know it hasn’t been up to the point we’re at.

Implementations§

Returns a new DeduceReadOnly instance.

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.

Layout§

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: 32 bytes