pub struct Warning {
    pub end: usize,
    pub language: Option<Language>,
    pub message: WarningMessage,
    pub start: usize,
}
Expand description

Warning from the parser telling that something is not well-formed.

When a warning occurs, it’s not guaranteed that the text near the warning is parsed correctly. Usually the data that could not be unambiguously parsed due to the warning is excluded from the output, to make sure the output doesn’t contain incorrectly parsed data.

Fields§

§end: usize

The byte position in the wiki text where the warning ends.

§language: Option<Language>

The language of the language section in which the warning occurred, if any.

§message: WarningMessage

An identifier for the kind of warning.

§start: usize

The byte position in the wiki text where the warning starts.

Trait Implementations§

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.