Macro failure::bail [−][src]
Exits a function early with an Error
.
The bail!
macro provides an easy way to exit a function. bail!(X)
is
equivalent to writing:
ⓘ
return Err(format_err!(X))
Exits a function early with an Error
.
The bail!
macro provides an easy way to exit a function. bail!(X)
is
equivalent to writing:
return Err(format_err!(X))