pub struct Parser<'a> {
pub model: &'a mut Model,
/* private fields */
}Fields§
§model: &'a mut ModelImplementations§
Source§impl<'a> Parser<'a>
impl<'a> Parser<'a>
pub fn new(model: &'a mut Model) -> Self
pub fn current(&self) -> &Option<String>
pub fn file(&self) -> &str
pub fn todo(&self) -> &Vec<String>
pub fn done(&self) -> &Vec<String>
pub fn files(&self) -> Vec<String>
pub fn add<S: Into<String>>(&mut self, file: S) -> bool
pub fn next(&mut self) -> Option<String>
Auto Trait Implementations§
impl<'a> Freeze for Parser<'a>
impl<'a> RefUnwindSafe for Parser<'a>
impl<'a> Send for Parser<'a>
impl<'a> Sync for Parser<'a>
impl<'a> Unpin for Parser<'a>
impl<'a> !UnwindSafe for Parser<'a>
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