Lines Matching refs:Error

155 use core::error::Error;
1645 type Error = Box<[T]>; typedef
1656 fn try_from(boxed_slice: Box<[T]>) -> Result<Self, Self::Error> { in try_from() argument
1668 type Error = Vec<T>; typedef
1688 fn try_from(vec: Vec<T>) -> Result<Self, Self::Error> { in try_from() argument
2142 impl dyn Error { implementation
2147 pub fn downcast<T: Error + 'static>(self: Box<Self>) -> Result<Box<T>, Box<dyn Error>> { in downcast() argument
2150 let raw: *mut dyn Error = Box::into_raw(self); in downcast()
2159 impl dyn Error + Send {
2164 pub fn downcast<T: Error + 'static>(self: Box<Self>) -> Result<Box<T>, Box<dyn Error + Send>> { in downcast()
2165 let err: Box<dyn Error> = self; in downcast()
2166 <dyn Error>::downcast(err).map_err(|s| unsafe { in downcast()
2168 mem::transmute::<Box<dyn Error>, Box<dyn Error + Send>>(s) in downcast()
2173 impl dyn Error + Send + Sync {
2178 pub fn downcast<T: Error + 'static>(self: Box<Self>) -> Result<Box<T>, Box<Self>> { in downcast()
2179 let err: Box<dyn Error> = self; in downcast()
2180 <dyn Error>::downcast(err).map_err(|s| unsafe { in downcast()
2182 mem::transmute::<Box<dyn Error>, Box<dyn Error + Send + Sync>>(s) in downcast()
2189 impl<'a, E: Error + 'a> From<E> for Box<dyn Error + 'a> {
2215 fn from(err: E) -> Box<dyn Error + 'a> { in from()
2222 impl<'a, E: Error + Send + Sync + 'a> From<E> for Box<dyn Error + Send + Sync + 'a> {
2254 fn from(err: E) -> Box<dyn Error + Send + Sync + 'a> { in from()
2261 impl From<String> for Box<dyn Error + Send + Sync> {
2276 fn from(err: String) -> Box<dyn Error + Send + Sync> { in from()
2279 impl Error for StringError { in from()
2305 impl From<String> for Box<dyn Error> {
2318 fn from(str_err: String) -> Box<dyn Error> { in from() argument
2319 let err1: Box<dyn Error + Send + Sync> = From::from(str_err); in from()
2320 let err2: Box<dyn Error> = err1; in from()
2327 impl<'a> From<&str> for Box<dyn Error + Send + Sync + 'a> {
2344 fn from(err: &str) -> Box<dyn Error + Send + Sync + 'a> { in from()
2351 impl From<&str> for Box<dyn Error> {
2366 fn from(err: &str) -> Box<dyn Error> { in from() argument
2373 impl<'a, 'b> From<Cow<'b, str>> for Box<dyn Error + Send + Sync + 'a> {
2388 fn from(err: Cow<'b, str>) -> Box<dyn Error + Send + Sync + 'a> { in from()
2395 impl<'a> From<Cow<'a, str>> for Box<dyn Error> {
2409 fn from(err: Cow<'a, str>) -> Box<dyn Error> { in from() argument
2415 impl<T: core::error::Error> core::error::Error for Box<T> {
2418 core::error::Error::description(&**self) in description()
2422 fn cause(&self) -> Option<&dyn core::error::Error> { in cause() argument
2423 core::error::Error::cause(&**self) in cause()
2426 fn source(&self) -> Option<&(dyn core::error::Error + 'static)> { in source()
2427 core::error::Error::source(&**self) in source()