[−][src]Struct gchemol_parser::TextParser
Deprecated:
To be removed for performance issue
A stream parser for large text file
Methods
impl TextParser
[src]
impl TextParser
[src]
pub fn parse_file<R: AsRef<Path>, F, P>(
&self,
file: R,
parser: F
) -> impl Iterator<Item = P> where
F: Fn(&str) -> IResult<&str, P>,
[src]
&self,
file: R,
parser: F
) -> impl Iterator<Item = P> where
F: Fn(&str) -> IResult<&str, P>,
Entry point for parsing a text file
Parameters
- parser: nom parser
Panics
- panics if
file
doesnot exist.
pub fn parse<R: Read, F, P>(&self, r: R, parser: F) -> impl Iterator<Item = P> where
F: Fn(&str) -> IResult<&str, P>,
[src]
F: Fn(&str) -> IResult<&str, P>,
Trait Implementations
impl Default for TextParser
[src]
General interface for parsing a large text file
Auto Trait Implementations
impl RefUnwindSafe for TextParser
impl Send for TextParser
impl Sync for TextParser
impl Unpin for TextParser
impl UnwindSafe for TextParser
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,