vanityaddr

Trait Prefixable

Source
pub(crate) trait Prefixable {
    // Required methods
    fn new() -> Self;
    fn to_string(&self) -> String;
    fn _get_secret(&self) -> SecretKey;

    // Provided methods
    fn starts_with(&self, prefix: &str, case_sensitive: bool) -> bool { ... }
    fn starts_with_any(&self, prefixes: &[String], case_sensitive: bool) -> bool { ... }
}

Required Methods§

Source

fn new() -> Self

Source

fn to_string(&self) -> String

Source

fn _get_secret(&self) -> SecretKey

Provided Methods§

Source

fn starts_with(&self, prefix: &str, case_sensitive: bool) -> bool

Source

fn starts_with_any(&self, prefixes: &[String], case_sensitive: bool) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§