Struct downcast::DowncastError
[−]
[src]
pub struct DowncastError<O> { /* fields omitted */ }Methods
impl<O> DowncastError<O>[src]
impl<O> DowncastError<O>pub fn new(mismatch: TypeMismatch, object: O) -> Self[src]
pub fn new(mismatch: TypeMismatch, object: O) -> Selfpub fn type_mismatch(&self) -> TypeMismatch[src]
pub fn type_mismatch(&self) -> TypeMismatchpub fn into_object(self) -> O[src]
pub fn into_object(self) -> OTrait Implementations
impl<O> Debug for DowncastError<O>[src]
impl<O> Debug for DowncastError<O>fn fmt(&self, fmt: &mut Formatter) -> Result[src]
fn fmt(&self, fmt: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<O> Display for DowncastError<O>[src]
impl<O> Display for DowncastError<O>fn fmt(&self, fmt: &mut Formatter) -> Result[src]
fn fmt(&self, fmt: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<O> Error for DowncastError<O>[src]
impl<O> Error for DowncastError<O>Auto Trait Implementations
impl<O> Send for DowncastError<O> where
O: Send,
impl<O> Send for DowncastError<O> where
O: Send, impl<O> Sync for DowncastError<O> where
O: Sync,
impl<O> Sync for DowncastError<O> where
O: Sync,