Skip to main content

Sealed

Trait Sealed 

Source
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§

Provided Methods§

Source

fn grow( _storage: &mut Self::Storage, _additional: usize, ) -> Result<(), CapacityFull>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T, const N: usize> Sealed for Box<[T; N]>

Available on crate feature read only.
Source§

impl<T, const N: usize> Sealed for [T; N]

Source§

impl<T> Sealed for Vec<T>

Available on crate feature read only.
Source§

type Storage = Box<[MaybeUninit<T>]>

Source§

fn new_storage() -> Self::Storage

Source§

fn grow( storage: &mut Self::Storage, additional: usize, ) -> Result<(), CapacityFull>

Implementors§