pub struct ReplAdapter;Expand description
REPL output adapter — preserves spans for reformatting.
Pre-bulldozer this returned a ValueWord::from_print_result(..)
pointing at a RareHeapData::PrintResult heap arm. Post-ADR-006 that
path is gone; the typed-schema replacement (PrintResult as a
HeapValue::TypedObject with a runtime-registered schema) is a
follow-up. For now the REPL adapter consumes the rendered text and
returns none(); the structured PrintResult is dropped until the
schema lands.
Trait Implementations§
Source§impl Clone for ReplAdapter
impl Clone for ReplAdapter
Source§fn clone(&self) -> ReplAdapter
fn clone(&self) -> ReplAdapter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReplAdapter
impl Debug for ReplAdapter
Source§impl OutputAdapter for ReplAdapter
impl OutputAdapter for ReplAdapter
Source§fn print(&mut self, _result: PrintResult) -> KindedSlot
fn print(&mut self, _result: PrintResult) -> KindedSlot
Handle print() output. Read more
Source§fn clone_box(&self) -> Box<dyn OutputAdapter>
fn clone_box(&self) -> Box<dyn OutputAdapter>
Clone the adapter (for trait object cloning)
Source§fn print_content_html(&mut self, _html: String)
fn print_content_html(&mut self, _html: String)
Handle Content HTML from printing a Content value.
Default implementation does nothing (terminal adapters don’t need HTML).
Auto Trait Implementations§
impl Freeze for ReplAdapter
impl RefUnwindSafe for ReplAdapter
impl Send for ReplAdapter
impl Sync for ReplAdapter
impl Unpin for ReplAdapter
impl UnsafeUnpin for ReplAdapter
impl UnwindSafe for ReplAdapter
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