Enum tomllib::types::ParseResult [] [src]

pub enum ParseResult<'a> {
    Full,
    FullError(Rc<RefCell<Vec<ParseError<'a>>>>),
    Partial(Cow<'a, str>, usizeusize),
    PartialError(Cow<'a, str>, usizeusizeRc<RefCell<Vec<ParseError<'a>>>>),
    Failure(usizeusize),
}

Conveys the result of a parse operation on a TOML document

Variants

The entire input was parsed without error.

The entire input was parsed, but there were errors. Contains an Rc<RefCell<Vec>> of ParseErrors.

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.

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 ParseErrors.

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]

Formats the value using the given formatter.

impl<'a> Eq for ParseResult<'a>
[src]

impl<'a> PartialEq for ParseResult<'a>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> Clone for ParseResult<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more