Enum tomllib::types::ParseResult
[−]
[src]
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), }
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
impl<'a> Debug for ParseResult<'a>
[src]
impl<'a> Eq for ParseResult<'a>
[src]
impl<'a> PartialEq for ParseResult<'a>
[src]
fn eq(&self, __arg_0: &ParseResult<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ParseResult<'a>) -> bool
This method tests for !=
.
impl<'a> Clone for ParseResult<'a>
[src]
fn clone(&self) -> ParseResult<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more