NoteIsTodo

Trait NoteIsTodo 

Source
pub trait NoteIsTodo: Note {
    // Required method
    fn is_todo(&self) -> Result<bool, Self::Error>;
}
Expand description

Trait for check note is marked todo

Required Methods§

Source

fn is_todo(&self) -> Result<bool, Self::Error>

Note is marked todo?

§Example
use obsidian_parser::prelude::*;

let raw_text = "---\ntags:\n- todo\n---\nSameData";
let note = NoteInMemory::from_string(raw_text).unwrap();

assert!(note.is_todo().unwrap());

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<N> NoteIsTodo for N
where N: NoteTags,