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§
pub 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.
pub enum Maybe<T> {
Ok(T),
Err(DiagnosticAdded),
}