pub fn is_pubkey_or_keypair<T>(string: T) -> Result<(), String>
where
    T: AsRef<str> + Display,
{
    is_pubkey(string.as_ref()).or_else(|_| is_keypair(string))
}
// Return an error if string cannot be parsed as pubkey string or keypair file location
Return an error if string cannot be parsed as pubkey string or keypair file location
Return an error if string cannot be parsed as pubkey string or keypair file location
pub fn is_pubkey_or_keypair<T>(string: T) -> Result<(), String>
where
    T: AsRef<str> + Display,
{
    is_pubkey(string.as_ref()).or_else(|_| is_keypair(string))
}
pub fn is_pubkey_or_keypair < T > ( string : T ) -> Result < ( ) , String > where T : AsRef < str > + Display , { is_pubkey ( string . as_ref ( ) ) . or_else ( | _ | is_keypair ( string ) ) }
Return an error if string cannot be parsed as pubkey string or keypair file location
Return an error if string cannot be parsed as pubkey string or keypair file location
string
T