pub trait Executed: Send {
    // Required methods
    fn mime_type(&self) -> String;
    fn as_json(&self, context: &JupyterContext) -> Value;
}
Expand description

A executed result that can be render in jupyter notebook.

Required Methods§

source

fn mime_type(&self) -> String

The mime type of the result.

source

fn as_json(&self, context: &JupyterContext) -> Value

Convert the result to json.

Implementations on Foreign Types§

source§

impl Executed for Value

source§

impl Executed for bool

source§

impl Executed for char

source§

impl Executed for f64

source§

impl Executed for i32

source§

impl Executed for String

source§

impl<'a> Executed for &'a str

Implementors§