pub enum ParseResult<'a> {
Full,
FullError(Rc<RefCell<Vec<ParseError<'a>>>>),
Partial(Cow<'a, str>, usize, usize),
PartialError(Cow<'a, str>, usize, usize, Rc<RefCell<Vec<ParseError<'a>>>>),
Failure(usize, usize),
}
Expand description
Conveys the result of a parse operation on a TOML document
Variants§
Full
The entire input was parsed without error.
FullError(Rc<RefCell<Vec<ParseError<'a>>>>)
The entire input was parsed, but there were errors. Contains an Rc<RefCell<Vec>>
of ParseError
s.
Partial(Cow<'a, str>, usize, usize)
Part of the input was parsed successfully without any errors. Contains a Cow<str>
, with the leftover, unparsed
input, the line number and column (currently column reporting is unimplemented and will always report 0
) where
parsing stopped.
PartialError(Cow<'a, str>, usize, usize, Rc<RefCell<Vec<ParseError<'a>>>>)
Part of the input was parsed successfully with errors. Contains a Cow<str>
, with the leftover, unparsed input,
the line number and column (currently column reporting is unimplemented and will always report 0
) where parsing
stopped, and an Rc<RefCell<Vec>>
of ParseError
s.
Failure(usize, usize)
The parser failed to parse any of the input as a complete TOML document. Contains the line number and column
(currently column reporting is unimplemented and will always report 0
) where parsing stopped.
Trait Implementations§
Source§impl<'a> Clone for ParseResult<'a>
impl<'a> Clone for ParseResult<'a>
Source§fn clone(&self) -> ParseResult<'a>
fn clone(&self) -> ParseResult<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more