Struct pyo3::exc::UnicodeDecodeError
[−]
[src]
pub struct UnicodeDecodeError;
Methods
impl UnicodeDecodeError
[src]
fn new<V: ToPyObject + 'static>(args: V) -> PyErr
[src]
fn into<R, V: ToPyObject + 'static>(args: V) -> PyResult<R>
[src]
impl UnicodeDecodeError
[src]
fn new_err<'p>(
py: Python<'p>,
encoding: &CStr,
input: &[u8],
range: Range<usize>,
reason: &CStr
) -> PyResult<&'p PyObjectRef>
[src]
py: Python<'p>,
encoding: &CStr,
input: &[u8],
range: Range<usize>,
reason: &CStr
) -> PyResult<&'p PyObjectRef>
fn new_utf8<'p>(
py: Python<'p>,
input: &[u8],
err: Utf8Error
) -> PyResult<&'p PyObjectRef>
[src]
py: Python<'p>,
input: &[u8],
err: Utf8Error
) -> PyResult<&'p PyObjectRef>
Trait Implementations
impl<T> Into<PyResult<T>> for UnicodeDecodeError
[src]
impl PyTypeObject for UnicodeDecodeError
[src]
fn init_type()
[src]
Initialize type object
fn type_object() -> Py<PyType>
[src]
Retrieves the type object for this Python object type.
fn create(py: Python) -> PyResult<PyRawObject> where
Self: Sized + PyObjectAlloc<Self> + PyTypeInfo,
[src]
Self: Sized + PyObjectAlloc<Self> + PyTypeInfo,
Create PyRawObject which can be initialized with rust value