pub trait ErrorClone:
Error
+ Send
+ Sync
+ 'static {
// Required method
fn clone_box(&self) -> Box<dyn ErrorClone>;
}Expand description
An error that can be cloned.
Required Methods§
Sourcefn clone_box(&self) -> Box<dyn ErrorClone>
fn clone_box(&self) -> Box<dyn ErrorClone>
Clone the error.
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".