fn is_pubkey(string: String) -> Result<(), String> {
    match string.parse::<Pubkey>() {
        Ok(_) => Ok(()),
        Err(err) => Err(format!("{:?}", err)),
    }
}
// Return an error if a pubkey cannot be parsed.
Return an error if a pubkey cannot be parsed.
Return an error if a pubkey cannot be parsed .
fn is_pubkey(string: String) -> Result<(), String> {
    match string.parse::<Pubkey>() {
        Ok(_) => Ok(()),
        Err(err) => Err(format!("{:?}", err)),
    }
}
fn is_pubkey ( string : String ) -> Result < ( ) , String > { match string . parse :: < Pubkey > ( ) { Ok ( _ ) => Ok ( ( ) ) , Err ( err ) => Err ( format ! ( " " err ) ) , } }
Return an error if a pubkey cannot be parsed.
Return an error if a pubkey cannot be parsed .
string
String
string
String