Enum cdoc_parser::notebook::Cell
source · 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
Fields
§
common: CellCommonMarkdown cells are parsed as regular markdown
Code
Code cells can be executed and can contain saved outputs
Raw
Fields
§
common: CellCommonRaw cells don’t perform a function in the notebook but are used for specifying cdoc metadata.
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 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