pub struct Scanner<'r> { /* private fields */ }Implementations§
Source§impl<'r> Scanner<'r>
impl<'r> Scanner<'r>
Sourcepub fn new(segment: &str, representable: &'r dyn Fn(char) -> bool) -> Self
pub fn new(segment: &str, representable: &'r dyn Fn(char) -> bool) -> Self
representable(c) says whether the document’s code page holds c: a character reference
to one it does not is reported as a NATIONAL-CHARACTER event.
Sourcepub fn feed(&mut self, segment: &str)
pub fn feed(&mut self, segment: &str)
The next segment, after END-OF-INPUT, joining what the last one left unfinished.
pub fn advance(&mut self) -> Step
Auto Trait Implementations§
impl<'r> !RefUnwindSafe for Scanner<'r>
impl<'r> !Send for Scanner<'r>
impl<'r> !Sync for Scanner<'r>
impl<'r> !UnwindSafe for Scanner<'r>
impl<'r> Freeze for Scanner<'r>
impl<'r> Unpin for Scanner<'r>
impl<'r> UnsafeUnpin for Scanner<'r>
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