Struct budvm::DynamicFault
source · pub struct DynamicFault(_);
Implementations§
source§impl DynamicFault
impl DynamicFault
sourcepub fn new<T: Debug + Display + 'static>(error: T) -> Self
pub fn new<T: Debug + Display + 'static>(error: T) -> Self
Returns a new instance containing the provided error.
sourcepub fn downcast_ref<T: Debug + Display + 'static>(&self) -> Option<&T>
pub fn downcast_ref<T: Debug + Display + 'static>(&self) -> Option<&T>
Returns a reference to the original error, if T
is the same type that
was provided during construction.
sourcepub fn try_unwrap<T: Debug + Display + 'static>(self) -> Result<T, Self>
pub fn try_unwrap<T: Debug + Display + 'static>(self) -> Result<T, Self>
Returns the original error if T
is the same type that was provided
during construction. If not, Err(self)
will be returned.
Trait Implementations§
source§impl Clone for DynamicFault
impl Clone for DynamicFault
source§fn clone(&self) -> DynamicFault
fn clone(&self) -> DynamicFault
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more