pub type Result<T> = Result<T, DepsError>;Expand description
Convenience type alias for Result<T, DepsError>.
This is the standard Result type used throughout the deps-lsp codebase.
It simplifies function signatures by defaulting the error type to DepsError.
§Examples
use deps_core::error::Result;
fn get_version(name: &str) -> Result<String> {
if name.is_empty() {
return Err(deps_core::error::DepsError::CacheError("empty name".into()));
}
Ok("1.0.0".into())
}Aliased Type§
pub enum Result<T> {
Ok(T),
Err(DepsError),
}