Type Definition cairo_lang_diagnostics::Maybe

source ·
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.

Trait Implementations§

source§

impl<T> ToOption<T> for Maybe<T>

source§

fn to_option(self) -> Option<T>