pub struct LispProcMacroDecoder;Expand description
Lisp decoder built on proc-macro2 tokenization.
Implements the codec’s Decoder, LocatedDecoder, and TreeDecoder
roles: it lexes s-expression source and reads it into checked Expr forms,
located expressions, or located expression trees, lowering the eval surface
as it goes.
Trait Implementations§
Source§impl Decoder for LispProcMacroDecoder
impl Decoder for LispProcMacroDecoder
Source§impl LocatedDecoder for LispProcMacroDecoder
impl LocatedDecoder for LispProcMacroDecoder
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 LispProcMacroDecoder
impl TreeDecoder for LispProcMacroDecoder
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>
Auto Trait Implementations§
impl Freeze for LispProcMacroDecoder
impl RefUnwindSafe for LispProcMacroDecoder
impl Send for LispProcMacroDecoder
impl Sync for LispProcMacroDecoder
impl Unpin for LispProcMacroDecoder
impl UnsafeUnpin for LispProcMacroDecoder
impl UnwindSafe for LispProcMacroDecoder
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