Struct jupyter::ExecutionResult
source · pub struct ExecutionResult { /* private fields */ }Expand description
The result of executing code
Implementations§
source§impl ExecutionResult
impl ExecutionResult
sourcepub fn new<T>(execute: &T) -> ExecutionResultwhere
T: Executed + ?Sized,
pub fn new<T>(execute: &T) -> ExecutionResultwhere T: Executed + ?Sized,
Create a new execution result
sourcepub fn with_count(self, count: usize) -> ExecutionResult
pub fn with_count(self, count: usize) -> ExecutionResult
Create a new execution result
sourcepub fn with_data(self, mime: String, data: Value) -> ExecutionResult
pub fn with_data(self, mime: String, data: Value) -> ExecutionResult
Create a new execution result
sourcepub fn with_metadata<T>(
self,
mime: &str,
data: T
) -> JupyterResult<ExecutionResult>where
T: Serialize,
pub fn with_metadata<T>( self, mime: &str, data: T ) -> JupyterResult<ExecutionResult>where T: Serialize,
Create a new execution result
sourcepub fn with_transient<T>(
self,
mime: &str,
data: T
) -> JupyterResult<ExecutionResult>where
T: Serialize,
pub fn with_transient<T>( self, mime: &str, data: T ) -> JupyterResult<ExecutionResult>where T: Serialize,
Create a new execution result
Trait Implementations§
source§impl Clone for ExecutionResult
impl Clone for ExecutionResult
source§fn clone(&self) -> ExecutionResult
fn clone(&self) -> ExecutionResult
Returns a copy 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 ExecutionResult
impl Debug for ExecutionResult
source§impl Default for ExecutionResult
impl Default for ExecutionResult
Auto Trait Implementations§
impl RefUnwindSafe for ExecutionResult
impl Send for ExecutionResult
impl Sync for ExecutionResult
impl Unpin for ExecutionResult
impl UnwindSafe for ExecutionResult
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