pub struct DisplayPort {
pub value: ArenaIndex,
pub port: PortId,
}Expand description
Write a Value through an IoProvider port.
This is a convenience for the evaluator’s display / write builtins
to emit a value through the I/O abstraction without requiring alloc.
The idx is an arena index that the caller can format into the port.
Implementations of higher-level display logic live in the evaluator
(or in grift_std), but this marker type can carry the index through
the trait boundary.
Fields§
§value: ArenaIndexThe arena index of the value to display.
port: PortIdThe target port.
Trait Implementations§
Source§impl Clone for DisplayPort
impl Clone for DisplayPort
Source§fn clone(&self) -> DisplayPort
fn clone(&self) -> DisplayPort
Returns a duplicate of the value. Read more
1.0.0 · 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 DisplayPort
impl Debug for DisplayPort
impl Copy for DisplayPort
Auto Trait Implementations§
impl Freeze for DisplayPort
impl RefUnwindSafe for DisplayPort
impl Send for DisplayPort
impl Sync for DisplayPort
impl Unpin for DisplayPort
impl UnwindSafe for DisplayPort
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