TruncateNoAllocLayout

Trait TruncateNoAllocLayout 

Source
pub trait TruncateNoAllocLayout: Layout { }
Expand description

A layout that supports truncate without allocating.

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.

Implementors§

Source§

impl TruncateNoAllocLayout for RawLayout

Available on crate feature raw-buffer only.
Source§

impl TruncateNoAllocLayout for VecLayout

Source§

impl<const ANY_BUFFER: bool, const STATIC: bool> TruncateNoAllocLayout for ArcLayout<ANY_BUFFER, STATIC>