pub struct CwEncoding;Expand description
An encoding that delegates to the MessagePack encoding provided by the cosmwasm_std crate.
This type implements the Encoding trait (see storey::encoding), which means it can
be used with some of storey’s containers to encode and decode values.
You’re unlikely to need to use this type directly for basic library usage. You might need it if you’re trying to use third-party containers this crate does not provide.
Trait Implementations§
Source§impl<T> DecodableWithImpl<CwEncoding> for Cover<T>where
T: DeserializeOwned,
impl<T> DecodableWithImpl<CwEncoding> for Cover<T>where
T: DeserializeOwned,
Source§impl<T> EncodableWithImpl<CwEncoding> for Cover<&T>where
T: Serialize,
impl<T> EncodableWithImpl<CwEncoding> for Cover<&T>where
T: Serialize,
Source§impl Encoding for CwEncoding
impl Encoding for CwEncoding
Source§type DecodeError = StdError
type DecodeError = StdError
The error type returned when decoding fails.
Source§type EncodeError = StdError
type EncodeError = StdError
The error type returned when encoding fails.
Auto Trait Implementations§
impl Freeze for CwEncoding
impl RefUnwindSafe for CwEncoding
impl Send for CwEncoding
impl Sync for CwEncoding
impl Unpin for CwEncoding
impl UnwindSafe for CwEncoding
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more