pub fn no_version(crate_name: impl Into<String>, version: Version) -> Self {
        Self::Version(VersionNotFoundError {
            crate_name: crate_name.into(),
            version,
        })
    }
/// Crate was found, but no matching version
///
/// # Example
/// ```
/// use crate_index::tree::NotFoundError;
///
/// let version = "0.1.0".parse().unwrap();
///
/// let error = NotFoundError::no_version("some-crate", version);
/// ```
Crate was found, but no matching version
Crate was found but no matching version
pub fn no_version(crate_name: impl Into<String>, version: Version) -> Self {
        Self::Version(VersionNotFoundError {
            crate_name: crate_name.into(),
            version,
        })
    }
pub fn no_version ( crate_name : impl Into < String > , version : Version ) -> Self { Self :: Version ( VersionNotFoundError { crate_name : crate_name . into ( ) , version , } ) }
Crate was found, but no matching version
Crate was found but no matching version
crate_name
impl Into<String>
version
Version
example
```
use crate_index::tree::NotFoundError.



let error = NotFoundError::no_version("some-crate", version);
```
` ` ` use crate_index :: tree :: NotFoundError . let error = NotFoundError :: no_version ( " some - crate " version ) ; ` ` `