usestd::fmt;usestd::fmt::{Display,Formatter};useerror_stack::Context;#[derive(Debug)]pubstructCastError;implDisplayforCastError{fnfmt(&self,fmt: &mutFormatter<'_>)-> fmt::Result{fmt.write_str("Failed to cast between traits")}}implContextforCastError{}