pub enum Cell {
Markdown {
common: CellCommon,
},
Code {
common: CellCommon,
execution_count: Option<i64>,
outputs: Vec<CellOutput>,
},
Raw {
common: CellCommon,
},
}
Expand description
Cell structure
Variants§
Markdown
Markdown cells are parsed as regular markdown
Fields
§
common: CellCommon
Code
Code cells can be executed and can contain saved outputs
Raw
Raw cells don’t perform a function in the notebook but are used for specifying cdoc metadata.
Fields
§
common: CellCommon
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cell
impl<'de> Deserialize<'de> for Cell
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Cell
impl RefUnwindSafe for Cell
impl Send for Cell
impl Sync for Cell
impl Unpin for Cell
impl UnwindSafe for Cell
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