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§
Object Safety§
This trait is not object safe.