Skip to main content

NoteFromString

Trait NoteFromString 

Source
pub trait NoteFromString: Note{
    // Required method
    fn from_string(raw_text: impl AsRef<str>) -> Result<Self, Self::Error>;
}
Expand description

Trait for parses an Obsidian note from a string

Required Methods§

Source

fn from_string(raw_text: impl AsRef<str>) -> Result<Self, Self::Error>

Parses an Obsidian note from a string

§Arguments
  • raw_text: Raw markdown content with optional YAML frontmatter

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§