Skip to main content

Backing

Trait Backing 

Source
pub unsafe trait Backing {
    const COUNTED: bool = false;
    const SLOTS: Option<u32> = None;
    const CAPACITY: Option<NonZero<u32>> = None;

    // Provided method
    unsafe fn release<S>(core: Ptr<Self, S>)
       where Self: Sized { ... }
}
Expand description

§Safety

Release the same backing once after all access ends; static dimensions match its Header/Slot geometry. COUNTED is true whenever a live Span can share its slot before consuming publication.

Provided Associated Constants§

Source

const COUNTED: bool = false

Source

const SLOTS: Option<u32> = None

Source

const CAPACITY: Option<NonZero<u32>> = None

Provided Methods§

Source

unsafe fn release<S>(core: Ptr<Self, S>)
where Self: Sized,

§Safety

core must be the terminal allocation edge for this backing kind.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Backing for Plain

Source§

impl<'d> Backing for Resident<'d>

Source§

const COUNTED: bool = true

Source§

impl<const CAPACITY: usize> Backing for Plain<Width<CAPACITY>>

Source§

impl<const SLOTS: usize, const CAPACITY: usize> Backing for Plain<Fixed<SLOTS, CAPACITY>>