pub unsafe trait Sealed {
type Storage;
// Required method
fn new_storage() -> Self::Storage;
// Provided method
fn grow(
_storage: &mut Self::Storage,
_additional: usize,
) -> Result<(), CapacityFull> { ... }
}Expand description
§Safety
Implementer must not modify the content in storage.
Required Associated Types§
Required Methods§
fn new_storage() -> Self::Storage
Provided Methods§
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<T, const N: usize> Sealed for [T; N]
impl<T, const N: usize> Sealed for [T; N]
type Storage = [MaybeUninit<T>; N]
fn new_storage() -> Self::Storage
Source§impl<T, const N: usize> Sealed for Box<[T; N]>
Available on crate feature read only.
impl<T, const N: usize> Sealed for Box<[T; N]>
Available on crate feature
read only.