pub fn as_str(&self) -> &str {
        match self {
            ReferenceKind::Tag(s) => s.as_str(),
            ReferenceKind::Digest(d) => d.as_str(),
        }
    }
/// Returns a reference to the raw underlying string (unlike to_string,
/// which has a leading ':' or '@' signifying the underlying reference type)
Returns a reference to the raw underlying string (unlike to_string,
which has a leading ':' or '@' signifying the underlying reference type)
Returns a reference to the raw underlying string ( unlike to_string which has a leading ' : ' or ' @ ' signifying the underlying reference type )
pub fn as_str(&self) -> &str {
        match self {
            ReferenceKind::Tag(s) => s.as_str(),
            ReferenceKind::Digest(d) => d.as_str(),
        }
    }
pub fn as_str ( & self ) -> & str { match self { ReferenceKind :: Tag ( s ) => s . as_str ( ) , ReferenceKind :: Digest ( d ) => d . as_str ( ) , } }
Returns a reference to the raw underlying string (unlike to_string,
which has a leading ':' or '@' signifying the underlying reference type)
Returns a reference to the raw underlying string ( unlike to_string which has a leading ' : ' or ' @ ' signifying the underlying reference type )
&self
&self