Trait reproto_core::WithSpan
[−]
[src]
pub trait WithSpan<T> { fn with_span<S: Into<Span>>(
self,
diag: &mut Diagnostics,
span: S
) -> Result<T, ()>; }
Required Methods
fn with_span<S: Into<Span>>(
self,
diag: &mut Diagnostics,
span: S
) -> Result<T, ()>
self,
diag: &mut Diagnostics,
span: S
) -> Result<T, ()>
Report the span to the diagnostics and convert the result into a unit error if failed.