Struct rtlola_reporting::RtLolaError [−][src]
pub struct RtLolaError { /* fields omitted */ }
Expand description
An error type to collect diagnostics throughout the frontend.
Implementations
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
pub fn combine<L, R, U, F: FnOnce(L, R) -> U>(
left: Result<L, RtLolaError>,
right: Result<R, RtLolaError>,
op: F
) -> Result<U, RtLolaError>
pub fn combine<L, R, U, F: FnOnce(L, R) -> U>(
left: Result<L, RtLolaError>,
right: Result<R, RtLolaError>,
op: F
) -> Result<U, RtLolaError>
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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
Creates a value from an iterator. Read more
Auto Trait Implementations
impl RefUnwindSafe for RtLolaError
impl Send for RtLolaError
impl Sync for RtLolaError
impl Unpin for RtLolaError
impl UnwindSafe for RtLolaError
Blanket Implementations
Mutably borrows from an owned value. Read more