pub struct TodoParser { /* private fields */ }Implementations§
Source§impl TodoParser
impl TodoParser
pub fn new(tags: &[String], case_sensitive: bool) -> Self
pub fn with_options( tags: &[String], case_sensitive: bool, require_colon: bool, custom_regex: Option<&str>, ) -> Self
pub fn parse_line(&self, line: &str, line_number: usize) -> Option<TodoItem>
pub fn parse_content(&self, content: &str) -> Vec<TodoItem>
pub fn parse_file(&self, path: &Path) -> Result<Vec<TodoItem>>
Trait Implementations§
Source§impl Clone for TodoParser
impl Clone for TodoParser
Source§fn clone(&self) -> TodoParser
fn clone(&self) -> TodoParser
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TodoParser
impl RefUnwindSafe for TodoParser
impl Send for TodoParser
impl Sync for TodoParser
impl Unpin for TodoParser
impl UnsafeUnpin for TodoParser
impl UnwindSafe for TodoParser
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