gimli::read::util::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", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> Sealed for Vec<T>

Source§

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

Source§

fn new_storage() -> Self::Storage

Source§

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

Source§

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

Source§

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

Implementors§