pub struct TodoR { /* private fields */ }
Expand description
Parser for finding TODOs in comments and storing them on a per-file basis.
Implementations
sourceimpl TodoR
impl TodoR
sourcepub fn get_tracked_files<'a>(&'a self) -> Vec<&'a str> ⓘ
pub fn get_tracked_files<'a>(&'a self) -> Vec<&'a str> ⓘ
Returns all tracked files that contain TODOs
sourcepub fn get_all_tracked_files<'a>(&'a self) -> Vec<&'a str> ⓘ
pub fn get_all_tracked_files<'a>(&'a self) -> Vec<&'a str> ⓘ
Returns all tracked files even if they have no TODOs
sourcepub fn open_todos(&mut self, filepath: &Path) -> Result<(), Error>
pub fn open_todos(&mut self, filepath: &Path) -> Result<(), Error>
Opens file at given filepath and process it by finding all its TODOs.
sourcepub fn find_todos(&mut self, content: &str) -> Result<(), Error>
pub fn find_todos(&mut self, content: &str) -> Result<(), Error>
Finds TODO comments in the given content
sourcepub fn print_todos(&self)
pub fn print_todos(&self)
Prints TODOs to stdout.
sourcepub fn write_todos(&self, out_buffer: &mut dyn Write) -> Result<(), Error>
pub fn write_todos(&self, out_buffer: &mut dyn Write) -> Result<(), Error>
Writes TODOs to out_buffer.
sourcepub fn write_todos_from_file(
&self,
filepath: &Path,
out_buffer: &mut dyn Write
) -> Result<(), Error>
pub fn write_todos_from_file(
&self,
filepath: &Path,
out_buffer: &mut dyn Write
) -> Result<(), Error>
Writes TODOs to out_buffer.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TodoR
impl Send for TodoR
impl Sync for TodoR
impl Unpin for TodoR
impl UnwindSafe for TodoR
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more