pub struct NotebookFormat;
Expand description
笔记本格式处理器
Implementations§
Source§impl NotebookFormat
impl NotebookFormat
Sourcepub fn validate_file<P: AsRef<Path>>(path: P) -> NotebookResult<()>
pub fn validate_file<P: AsRef<Path>>(path: P) -> NotebookResult<()>
验证笔记本文件格式
Sourcepub fn get_file_info<P: AsRef<Path>>(
path: P,
) -> NotebookResult<NotebookFileInfo>
pub fn get_file_info<P: AsRef<Path>>( path: P, ) -> NotebookResult<NotebookFileInfo>
获取笔记本文件信息
Sourcepub fn migrate_format(
old_content: &str,
from_version: &str,
) -> NotebookResult<String>
pub fn migrate_format( old_content: &str, from_version: &str, ) -> NotebookResult<String>
转换旧版本笔记本格式
Sourcepub fn create_template(title: &str) -> Notebook
pub fn create_template(title: &str) -> Notebook
创建默认笔记本模板
Auto Trait Implementations§
impl Freeze for NotebookFormat
impl RefUnwindSafe for NotebookFormat
impl Send for NotebookFormat
impl Sync for NotebookFormat
impl Unpin for NotebookFormat
impl UnwindSafe for NotebookFormat
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> 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