rustc_utils::mir::mutability

Trait MutabilityExt

Source
pub trait MutabilityExt {
    // Required method
    fn is_permissive_as(self, other: Self) -> bool;
}

Required Methods§

Source

fn is_permissive_as(self, other: Self) -> bool

Returns true if self is equally or more permissive than other, i.e. where Not is more permissive than Mut.

This corresponds to the relation $\omega_1 \lesssim \omega_2$ in the Flowistry paper.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl MutabilityExt for Mutability

Source§

fn is_permissive_as(self, other: Self) -> bool

Implementors§