pub trait Parser {
// Required methods
fn to_pubkey(self) -> Result<Pubkey, Box<dyn Error>>;
fn to_u128(self) -> Result<u128, Box<dyn Error>>;
fn to_u64(self) -> Result<u64, Box<dyn Error>>;
fn to_u16(self) -> Result<u16, Box<dyn Error>>;
fn to_f64(self) -> Result<f64, Box<dyn Error>>;
fn to_file(self) -> Result<String, Box<dyn Error>>;
fn to_string(self) -> Result<String, Box<dyn Error>>;
fn to_decimal(self) -> Result<Decimal, Box<dyn Error>>;
fn confirm() -> Result<(), Box<dyn Error>>;
}
Required Methods§
fn to_pubkey(self) -> Result<Pubkey, Box<dyn Error>>
fn to_u128(self) -> Result<u128, Box<dyn Error>>
fn to_u64(self) -> Result<u64, Box<dyn Error>>
fn to_u16(self) -> Result<u16, Box<dyn Error>>
fn to_f64(self) -> Result<f64, Box<dyn Error>>
fn to_file(self) -> Result<String, Box<dyn Error>>
fn to_string(self) -> Result<String, Box<dyn Error>>
fn to_decimal(self) -> Result<Decimal, Box<dyn Error>>
fn confirm() -> Result<(), Box<dyn Error>>
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.