pub type Maybe<T> = Result<T, DiagnosticAdded>;
Expand description
Represents an arbitrary type T or a missing output due to an error whose diagnostic was properly reported.
Aliased Type§
enum Maybe<T> {
Ok(T),
Err(DiagnosticAdded),
}
pub type Maybe<T> = Result<T, DiagnosticAdded>;
Represents an arbitrary type T or a missing output due to an error whose diagnostic was properly reported.
enum Maybe<T> {
Ok(T),
Err(DiagnosticAdded),
}