Trait StringExt

Source
pub trait StringExt {
    // Required methods
    fn bytes_from_hex(&self) -> Result<Vec<u8>, FromHexError>;
    fn base64_decoded(&self) -> Result<Vec<u8>, DecodeError>;
    fn base64_encoded(&self) -> String;
    fn base58_decoded(&self) -> Option<Vec<u8>>;
    fn base58_check_decoded(&self) -> Option<Vec<u8>>;
    fn base58_encoded(&self) -> String;
    fn var_size(&self) -> usize;
    fn is_valid_address(&self) -> bool;
    fn is_valid_hex(&self) -> bool;
    fn address_to_scripthash(&self) -> Result<ScriptHash, &'static str>;
    fn reversed_hex(&self) -> String;
}

Required Methods§

Implementations on Foreign Types§

Source§

impl StringExt for String

Implementors§