pub struct JavascriptCodec;Expand description
Runtime codec object for codec/javascript.
Trait Implementations§
Source§impl Decoder for JavascriptCodec
impl Decoder for JavascriptCodec
Source§impl Default for JavascriptCodec
impl Default for JavascriptCodec
Source§fn default() -> JavascriptCodec
fn default() -> JavascriptCodec
Returns the “default value” for a type. Read more
Source§impl Encoder for JavascriptCodec
impl Encoder for JavascriptCodec
Source§impl LocatedDecoder for JavascriptCodec
impl LocatedDecoder for JavascriptCodec
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 JavascriptCodec
impl TreeDecoder for JavascriptCodec
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 JavascriptCodec
impl TreeEncoder for JavascriptCodec
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 JavascriptCodec
impl RefUnwindSafe for JavascriptCodec
impl Send for JavascriptCodec
impl Sync for JavascriptCodec
impl Unpin for JavascriptCodec
impl UnsafeUnpin for JavascriptCodec
impl UnwindSafe for JavascriptCodec
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