pub enum Cell {
Code(CodeCell),
Markdown(MarkdownCell),
Raw(RawCell),
}Expand description
A notebook cell
Variants§
Implementations§
Source§impl Cell
impl Cell
Sourcepub fn source_mut(&mut self) -> &mut Source
pub fn source_mut(&mut self) -> &mut Source
Get mutable source reference
Sourcepub fn metadata(&self) -> &CellMetadata
pub fn metadata(&self) -> &CellMetadata
Get cell 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 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