Trait gimli::read::util::sealed::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>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> Sealed for Vec<T>

§

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§