#[repr(C)]pub struct PySyntaxErrorObject {Show 17 fields
pub ob_base: PyObject,
pub dict: *mut PyObject,
pub args: *mut PyObject,
pub notes: *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,
pub metadata: *mut PyObject,
}Available on non-
Py_LIMITED_API and neither PyPy nor GraalPy only.Fields§
§ob_base: PyObject§dict: *mut PyObject§args: *mut PyObject§notes: *mut PyObjectAvailable on
§Py_3_11 only.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 PyObjectAvailable on
§Py_3_10 only.end_offset: *mut PyObjectAvailable on
§Py_3_10 only.text: *mut PyObject§print_file_and_line: *mut PyObject§metadata: *mut PyObjectAvailable on
Py_3_14 only.Trait Implementations§
Auto Trait Implementations§
impl Freeze for PySyntaxErrorObject
impl RefUnwindSafe for PySyntaxErrorObject
impl !Send for PySyntaxErrorObject
impl !Sync for PySyntaxErrorObject
impl Unpin for PySyntaxErrorObject
impl UnsafeUnpin for PySyntaxErrorObject
impl UnwindSafe for PySyntaxErrorObject
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)]const SIZE: usize = _
#[doc(hidden)]const SIZE: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const ALIGN: usize = _
#[doc(hidden)]const ALIGN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const ALIGNMENT: Alignment = _
#[doc(hidden)]const ALIGNMENT: Alignment = _
🔬This is a nightly-only experimental API. (
ptr_alignment_type)Source§#[doc(hidden)]const IS_ZST: bool = _
#[doc(hidden)]const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const LAYOUT: Layout = _
#[doc(hidden)]const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const MAX_SLICE_LEN: usize = _
#[doc(hidden)]const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties)The largest safe length for a
[Self]. Read more