pub struct PythonCodec;Expand description
Runtime codec object for codec/python.
Trait Implementations§
Source§impl Decoder for PythonCodec
impl Decoder for PythonCodec
Source§impl Default for PythonCodec
impl Default for PythonCodec
Source§fn default() -> PythonCodec
fn default() -> PythonCodec
Returns the “default value” for a type. Read more
Source§impl Encoder for PythonCodec
impl Encoder for PythonCodec
Source§impl LocatedDecoder for PythonCodec
impl LocatedDecoder for PythonCodec
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 TreeDecoder for PythonCodec
impl TreeDecoder for PythonCodec
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 PythonCodec
impl TreeEncoder for PythonCodec
Source§fn encode_tree(
&self,
cx: &mut WriteCx<'_>,
tree: &LocatedExprTree,
) -> Result<Output>
fn encode_tree( &self, cx: &mut WriteCx<'_>, tree: &LocatedExprTree, ) -> Result<Output>
Encode a
LocatedExprTree, reproducing layout and trivia where present.Auto Trait Implementations§
impl Freeze for PythonCodec
impl RefUnwindSafe for PythonCodec
impl Send for PythonCodec
impl Sync for PythonCodec
impl Unpin for PythonCodec
impl UnsafeUnpin for PythonCodec
impl UnwindSafe for PythonCodec
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