pub struct BitwiseBase64Codec;Expand description
Codec runtime object that carries sim-codec-bitwise frames as base64 text.
This domain codec is a thin text wrapper: it implements every codec role –
Decoder/Encoder, located LocatedDecoder/LocatedEncoder, and
tree TreeDecoder/TreeEncoder – by delegating frame encode/decode to
sim-codec-bitwise and base64-encoding the bytes on the way out and
base64-decoding them on the way in. The base64 text and the underlying bytes
are untrusted data; malformed input fails closed and is never executed.
Trait Implementations§
Source§impl Decoder for BitwiseBase64Codec
impl Decoder for BitwiseBase64Codec
Source§impl Encoder for BitwiseBase64Codec
impl Encoder for BitwiseBase64Codec
Source§impl LocatedDecoder for BitwiseBase64Codec
impl LocatedDecoder for BitwiseBase64Codec
Source§fn decode_located(
&self,
cx: &mut ReadCx<'_>,
input: Input,
_source_id: String,
) -> Result<LocatedExpr>
fn decode_located( &self, cx: &mut ReadCx<'_>, input: Input, _source_id: String, ) -> Result<LocatedExpr>
Source§impl LocatedEncoder for BitwiseBase64Codec
impl LocatedEncoder for BitwiseBase64Codec
Source§fn encode_located(
&self,
cx: &mut WriteCx<'_>,
expr: &LocatedExpr,
) -> Result<Output>
fn encode_located( &self, cx: &mut WriteCx<'_>, expr: &LocatedExpr, ) -> Result<Output>
Encode a
LocatedExpr, optionally using its origin for fidelity.Source§impl TreeDecoder for BitwiseBase64Codec
impl TreeDecoder for BitwiseBase64Codec
Source§fn decode_tree(
&self,
cx: &mut ReadCx<'_>,
input: Input,
_source_id: String,
) -> Result<LocatedExprTree>
fn decode_tree( &self, cx: &mut ReadCx<'_>, input: Input, _source_id: String, ) -> Result<LocatedExprTree>
Source§impl TreeEncoder for BitwiseBase64Codec
impl TreeEncoder for BitwiseBase64Codec
Source§fn encode_tree(
&self,
cx: &mut WriteCx<'_>,
expr: &LocatedExprTree,
) -> Result<Output>
fn encode_tree( &self, cx: &mut WriteCx<'_>, expr: &LocatedExprTree, ) -> Result<Output>
Encode a
LocatedExprTree, reproducing layout and trivia where present.Auto Trait Implementations§
impl Freeze for BitwiseBase64Codec
impl RefUnwindSafe for BitwiseBase64Codec
impl Send for BitwiseBase64Codec
impl Sync for BitwiseBase64Codec
impl Unpin for BitwiseBase64Codec
impl UnsafeUnpin for BitwiseBase64Codec
impl UnwindSafe for BitwiseBase64Codec
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