pub trait StorageTrait {
// Required methods
fn ptr(&self) -> NonNull<u8>;
fn as_storage(&self) -> &Storage;
}Expand description
Trait for types that can provide storage functionality.
This trait defines the interface for accessing storage pointers and converting to storage references.
Required Methods§
Sourcefn as_storage(&self) -> &Storage
fn as_storage(&self) -> &Storage
Returns a reference to the storage instance.