pub enum CellType {
Code,
Text,
Markdown,
Output,
}Expand description
单元格类型
Variants§
Code
代码单元格 - 包含可执行的数学表达式
Text
文本单元格 - 包含纯文本内容
Markdown
Markdown 单元格 - 包含 Markdown 格式的文档
Output
输出单元格 - 显示计算结果(只读)
Implementations§
Source§impl CellType
impl CellType
Sourcepub fn display_name(&self) -> &'static str
pub fn display_name(&self) -> &'static str
获取单元格类型的显示名称
Sourcepub fn is_executable(&self) -> bool
pub fn is_executable(&self) -> bool
检查单元格类型是否可执行
Sourcepub fn is_editable(&self) -> bool
pub fn is_editable(&self) -> bool
检查单元格类型是否可编辑
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CellType
impl<'de> Deserialize<'de> for CellType
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
impl StructuralPartialEq for CellType
Auto Trait Implementations§
impl Freeze for CellType
impl RefUnwindSafe for CellType
impl Send for CellType
impl Sync for CellType
impl Unpin for CellType
impl UnsafeUnpin for CellType
impl UnwindSafe for CellType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more