Skip to main content

FlagLength

Trait FlagLength 

Source
pub trait FlagLength: Clone + Eq {
    // Required method
    fn len(&self) -> u32;

    // Provided methods
    fn base_mask(&self) -> u32 { ... }
    fn chunk_size(&self) -> u32 { ... }
    fn split(&self, x: usize) -> (usize, u32) { ... }
}

Required Methods§

Source

fn len(&self) -> u32

Provided Methods§

Source

fn base_mask(&self) -> u32

Source

fn chunk_size(&self) -> u32

Source

fn split(&self, x: usize) -> (usize, u32)

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 FlagLength for u32

Source§

fn len(&self) -> u32

Implementors§