pub struct RsParser {}Expand description
Parser for .rs Venus notebooks.
Implementations§
Source§impl RsParser
impl RsParser
Sourcepub fn parse_file(
&self,
path: impl AsRef<Path>,
) -> SyncResult<(NotebookMetadata, Vec<NotebookCell>)>
pub fn parse_file( &self, path: impl AsRef<Path>, ) -> SyncResult<(NotebookMetadata, Vec<NotebookCell>)>
Parse a .rs file into notebook metadata and cells.
Sourcepub fn parse_source(
&self,
source: &str,
) -> SyncResult<(NotebookMetadata, Vec<NotebookCell>)>
pub fn parse_source( &self, source: &str, ) -> SyncResult<(NotebookMetadata, Vec<NotebookCell>)>
Parse source code into notebook metadata and cells.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RsParser
impl RefUnwindSafe for RsParser
impl Send for RsParser
impl Sync for RsParser
impl Unpin for RsParser
impl UnwindSafe for RsParser
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