Type Alias Result
pub type Result<T> = Result<T, Error>;Expand description
dotscope Result type.
A type alias for std::result::Result<T, Error> where the error type is always crate::Error.
This is used consistently throughout the crate for all fallible operations.
§Usage Examples
use dotscope::{Result, CilObject};
fn load_assembly(path: &str) -> Result<CilObject> {
CilObject::from_file(std::path::Path::new(path))
}Aliased Type§
pub enum Result<T> {
Ok(T),
Err(Error),
}