Skip to main content

Boxable

Trait Boxable 

Source
pub trait Boxable:
    Any
    + Clone
    + PartialEq
    + Debug {
    // Required method
    fn render(&self, f: &mut Formatter<'_>) -> Result;
}
Expand description

A type a compiled program declares that can ride a tuple element as a Value::Boxed. The program implements it for each record and variant it declares; render is the type’s own Show (this crate has no IO, so the rendering is supplied by the implementor).

Required Methods§

Source

fn render(&self, f: &mut Formatter<'_>) -> Result

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§