pub enum CodeModeHint {
Show,
Runnable,
Run,
Replace,
}Expand description
Behavioural hint: the block hints what to do with the code.
Variants§
Show
Hint to show the code in the document.
Runnable
Hint to show the code in the document and to signal that it is supposed to be able to run.
Run
Hint to show the code in the document and to run the code and show the results as well.
Replace
Hint to run the code and show the results in the document instead of the code itself.
Trait Implementations§
Source§impl Clone for CodeModeHint
impl Clone for CodeModeHint
Source§fn clone(&self) -> CodeModeHint
fn clone(&self) -> CodeModeHint
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 CodeModeHint
impl Debug for CodeModeHint
Source§impl Default for CodeModeHint
impl Default for CodeModeHint
Source§fn default() -> CodeModeHint
fn default() -> CodeModeHint
Returns the “default value” for a type. Read more
Source§impl Hash for CodeModeHint
impl Hash for CodeModeHint
Source§impl Ord for CodeModeHint
impl Ord for CodeModeHint
Source§fn cmp(&self, other: &CodeModeHint) -> Ordering
fn cmp(&self, other: &CodeModeHint) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CodeModeHint
impl PartialEq for CodeModeHint
Source§impl PartialOrd for CodeModeHint
impl PartialOrd for CodeModeHint
impl Copy for CodeModeHint
impl Eq for CodeModeHint
impl StructuralPartialEq for CodeModeHint
Auto Trait Implementations§
impl Freeze for CodeModeHint
impl RefUnwindSafe for CodeModeHint
impl Send for CodeModeHint
impl Sync for CodeModeHint
impl Unpin for CodeModeHint
impl UnwindSafe for CodeModeHint
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