pub struct LispProcMacroEncoder;Expand description
Lisp encoder that renders expressions back to s-expression text.
Implements the codec’s Encoder and TreeEncoder roles: it serializes
any Expr (or a LocatedExprTree, preserving trivia) to Lisp text,
honoring quote forms and the requested output position.
Trait Implementations§
Source§impl Encoder for LispProcMacroEncoder
impl Encoder for LispProcMacroEncoder
Source§impl TreeEncoder for LispProcMacroEncoder
impl TreeEncoder for LispProcMacroEncoder
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 LispProcMacroEncoder
impl RefUnwindSafe for LispProcMacroEncoder
impl Send for LispProcMacroEncoder
impl Sync for LispProcMacroEncoder
impl Unpin for LispProcMacroEncoder
impl UnsafeUnpin for LispProcMacroEncoder
impl UnwindSafe for LispProcMacroEncoder
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