Struct idalib_sys::hexrays::ctry_t

#[repr(C)]
pub struct ctry_t { pub _base: cblock_t, pub catchs: qvector<ccatch_t>, pub old_state: usize, pub new_state: usize, pub is_wind: bool, }
Expand description

C++ Try statement. This structure is also used to represent wind statements.

Fields§

§_base: cblock_t§catchs: qvector<ccatch_t>

< “catch all”, if present, must be the last element. < wind-statements must have “catch all” and nothing else.

§old_state: usize

< old state number (internal, MSVC related)

§new_state: usize

< new state number (internal, MSVC related)

§is_wind: bool

Is C++ wind statement? (not part of the C++ language) MSVC generates code like the following to keep track of constructed objects and destroy them upon an exception. Example:

/* an object is constructed at this point / __wind { / some other code that may throw an exception / } __unwind { / this code is executed only if there was an exception / / in the __wind block. normally here we destroy the object */ */ after that the exception is passed to the / / exception handler, regular control flow is interrupted here. / } / regular logic continues here, if there were no exceptions / / also the object’s destructor is called */

Implementations§

§

impl ctry_t

pub unsafe fn print( &self, parent: *const citem_t, indent: c_int, vp: *mut vc_printer_t, )

Trait Implementations§

§

impl ExternType for ctry_t

§

type Id = (c, t, r, y, __, t)

A type-level representation of the type’s C++ namespace and type name. Read more
§

type Kind = Opaque

Auto Trait Implementations§

§

impl Freeze for ctry_t

§

impl !RefUnwindSafe for ctry_t

§

impl !Send for ctry_t

§

impl !Sync for ctry_t

§

impl Unpin for ctry_t

§

impl !UnwindSafe for ctry_t

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>,

source§

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>,

source§

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.