Struct cpython::PythonObjectDowncastError[][src]

pub struct PythonObjectDowncastError<'p> { /* fields omitted */ }

Implementations

impl<'p> PythonObjectDowncastError<'p>[src]

pub fn new(
    py: Python<'p>,
    expected_type_name: impl Into<String>,
    received_type: PyType
) -> Self
[src]

Trait Implementations

impl<'p> Debug for PythonObjectDowncastError<'p>[src]

impl<'p> From<PythonObjectDowncastError<'p>> for PyErr[src]

Converts PythonObjectDowncastError to Python TypeError.

Auto Trait Implementations

impl<'p> !RefUnwindSafe for PythonObjectDowncastError<'p>[src]

impl<'p> !Send for PythonObjectDowncastError<'p>[src]

impl<'p> !Sync for PythonObjectDowncastError<'p>[src]

impl<'p> Unpin for PythonObjectDowncastError<'p>[src]

impl<'p> !UnwindSafe for PythonObjectDowncastError<'p>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.