pub enum DocumentKind {
Note,
Todo,
Bookmark,
}Expand description
Distinguishes the three document kinds recognized by the parser.
DocumentKind::Note is the default for .md files and any
path whose extension is not .todo.md or .bookmark.md.
DocumentKind::Todo is for .todo.md files. The Todo
TodoState is derived from the title line via
NoteDocument::todo_state.
DocumentKind::Bookmark is for .bookmark.md files.
Variants§
Trait Implementations§
Source§impl Clone for DocumentKind
impl Clone for DocumentKind
impl Copy for DocumentKind
Source§impl Debug for DocumentKind
impl Debug for DocumentKind
Source§impl<'de> Deserialize<'de> for DocumentKind
impl<'de> Deserialize<'de> for DocumentKind
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 Eq for DocumentKind
Source§impl PartialEq for DocumentKind
impl PartialEq for DocumentKind
Source§impl Serialize for DocumentKind
impl Serialize for DocumentKind
impl StructuralPartialEq for DocumentKind
Auto Trait Implementations§
impl Freeze for DocumentKind
impl RefUnwindSafe for DocumentKind
impl Send for DocumentKind
impl Sync for DocumentKind
impl Unpin for DocumentKind
impl UnsafeUnpin for DocumentKind
impl UnwindSafe for DocumentKind
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