mirror of
https://github.com/moghtech/komodo.git
synced 2026-03-11 17:44:19 -05:00
fix EncodedOption docs
This commit is contained in:
@@ -3,11 +3,11 @@ use bytes::Bytes;
|
||||
|
||||
use crate::{CastBytes, Decode, Encode};
|
||||
|
||||
/// Message wrapper to handle Error unwrapping
|
||||
/// Message wrapper to handle Option unwrapping
|
||||
/// anywhere in the en/decoding chain.
|
||||
/// ```markdown
|
||||
/// | -- u8[] -- | ----- u8 ------ |
|
||||
/// | <CONTENTS> | 0: Ok or _: Err |
|
||||
/// | -- u8[] -- | ------- u8 ------- |
|
||||
/// | <CONTENTS> | 0: Some or _: None |
|
||||
/// ```
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct EncodedOption<T>(T);
|
||||
|
||||
Reference in New Issue
Block a user