pub fn locked_version(&self) -> Option<&Version> {
        match self {
            OptVersionReq::Locked(version, _) => Some(version),
            _ => None,
        }
    }
/// Gets the version to which this req is locked, if any.
Gets the version to which this req is locked, if any.
Gets the version to which this req is locked if any .
pub fn locked_version(&self) -> Option<&Version> {
        match self {
            OptVersionReq::Locked(version, _) => Some(version),
            _ => None,
        }
    }
pub fn locked_version ( & self ) -> Option < & Version > { match self { OptVersionReq :: Locked ( version , _ ) => Some ( version ) , _ => None , } }
Gets the version to which this req is locked, if any.
Gets the version to which this req is locked if any .
&self
&self