Skip to main content

StorageExtStr

Trait StorageExtStr 

Source
pub unsafe trait StorageExtStr: StorageExt + Sized {
    // Provided method
    fn create(self) -> (*const u8, usize, &'static StorageVTable) { ... }
}
Expand description

Type’s as_ptr must return ptr to valid string.

§Safety

Only valid str could implement this trait

Provided Methods§

Source

fn create(self) -> (*const u8, usize, &'static StorageVTable)

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 StorageExtStr for Arc<str>

Implementors§