Skip to main content

Receive

Trait Receive 

Source
pub unsafe trait Receive: Layout {
    type Extent: Extent;

    // Required method
    fn limit(self) -> <Self::Extent as Extent>::Capacity;
}
Expand description

A receive layout retaining its original capacity proof.

§Safety

limit must expose exactly the same capacity as Layout::capacity.

Required Associated Types§

Required Methods§

Source

fn limit(self) -> <Self::Extent as Extent>::Capacity

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§