pub struct EnumCodec { /* private fields */ }Expand description
upstream createEnum<T>: возвращает пару (decode, encode) для дескрипторного
enum вида prefix.value. Так как в Rust замыкания неудобно возвращать парой,
предоставляем структуру с теми же decode/encode.
Implementations§
Auto Trait Implementations§
impl Freeze for EnumCodec
impl RefUnwindSafe for EnumCodec
impl Send for EnumCodec
impl Sync for EnumCodec
impl Unpin for EnumCodec
impl UnsafeUnpin for EnumCodec
impl UnwindSafe for EnumCodec
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