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§
Provided Methods§
fn starts_with(&self, prefix: &str, case_sensitive: bool) -> bool
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.