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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".