#[repr(C)]
pub struct PySyntaxErrorObject {
Show 15 fields pub ob_base: PyObject, pub dict: *mut PyObject, pub args: *mut PyObject, pub traceback: *mut PyObject, pub context: *mut PyObject, pub cause: *mut PyObject, pub suppress_context: char, pub msg: *mut PyObject, pub filename: *mut PyObject, pub lineno: *mut PyObject, pub offset: *mut PyObject, pub end_lineno: *mut PyObject, pub end_offset: *mut PyObject, pub text: *mut PyObject, pub print_file_and_line: *mut PyObject,
}

Fields§

§ob_base: PyObject§dict: *mut PyObject§args: *mut PyObject§traceback: *mut PyObject§context: *mut PyObject§cause: *mut PyObject§suppress_context: char§msg: *mut PyObject§filename: *mut PyObject§lineno: *mut PyObject§offset: *mut PyObject§end_lineno: *mut PyObject§end_offset: *mut PyObject§text: *mut PyObject§print_file_and_line: *mut PyObject

Trait Implementations§

source§

impl Debug for PySyntaxErrorObject

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.