rendy_chain

Trait AccessFlags

Source
pub trait AccessFlags:
    Copy
    + Debug
    + BitOr<Output = Self>
    + BitOrAssign
    + 'static {
    // Required methods
    fn empty() -> Self;
    fn exclusive(&self) -> bool;
}
Expand description

Trait to abstract of specific access flags.

Required Methods§

Source

fn empty() -> Self

Get flags value with no flags set.

Source

fn exclusive(&self) -> bool

Check if this access must be exclusive.

Basically this checks if all flags are known read flags.

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 AccessFlags for Access

Source§

fn empty() -> Self

Source§

fn exclusive(&self) -> bool

Source§

impl AccessFlags for Access

Source§

fn empty() -> Self

Source§

fn exclusive(&self) -> bool

Implementors§