pub struct RtLolaError { /* private fields */ }
Expand description

An error type to collect diagnostics throughout the frontend.

Implementations

Creates a new error

Adds a Diagnostic to the error

Returns a slice of all Diagnostics of the error

Returns the number of Diagnostics with the severity error

Returns the number of Diagnostics with the severity warning

Merges to errors into one by combining the internal collections

Returns an iterator over the Diagnostics of the error

Combines to Results with an RtLolaError as the Error type into a single Result. If both results are Ok then op is applied to these values to construct the new Ok value. If one of the errors is Err then the Err is returned If both Results are errors then the RtLolaErrors are merged using RtLolaError::join and returned.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Creates a value from an iterator. Read more

Which kind of iterator are we turning this into?

The type of the elements being iterated over.

Creates an iterator from a value. 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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.