Struct cosmwasm_vm::testing::MockApi [−][src]
pub struct MockApi { /* fields omitted */ }Expand description
Zero-pads all human addresses to make them fit the canonical_length and trims off zeros for the reverse operation. This is not really smart, but allows us to see a difference (and consistent length for canonical adddresses).
Implementations
Read-only getter for canonical_length, which must not be changed by the caller.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MockApi
impl UnwindSafe for MockApi
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more