pub trait OpError: Sized {
type V;
// Required method
fn op_err(self) -> Option<Self::V>;
// Provided methods
fn e_str(self, s: &'static str) -> Result<Self::V> { ... }
fn e_string(self, s: String) -> Result<Self::V> { ... }
}
Required Associated Types§
Required Methods§
Provided Methods§
fn e_str(self, s: &'static str) -> Result<Self::V>
fn e_string(self, s: String) -> Result<Self::V>
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.