Skip to main content

citem_t

Struct citem_t 

pub struct citem_t { /* private fields */ }
Expand description

Basic ctree item. This is an abstract class (but we don’t use virtual functions in ctree, so the compiler will not disallow you to create citem_t instances). However, items of pure citem_t type must never be created. Two classes, cexpr_t and cinsn_t are derived from it.

Implementations§

§

impl citem_t

pub unsafe fn is_expr(&self) -> bool

Is an expression?

pub unsafe fn contains_expr(&self, e: *const cexpr_t) -> bool

Does the item contain an expression?

pub unsafe fn contains_label(&self) -> bool

Does the item contain a label?

pub unsafe fn find_parent_of(&self, item: *const citem_t) -> *const citem_t

Find parent of the specified item. \param item Item to find the parent of. The search will be performed among the children of the item pointed by \c this. \return nullptr if not found

pub unsafe fn find_parent_of1( self: Pin<&mut Self>, item: *const citem_t, ) -> *mut citem_t

pub unsafe fn find_closest_addr( self: Pin<&mut Self>, _ea: c_ulonglong, ) -> *mut citem_t

pub unsafe fn print1( &self, vout: *mut qstring_char_AutocxxConcrete, func: *const cfunc_t, )

Print item into one line. \param vout output buffer \param func parent function. This argument is used to find out the referenced variable names. \return length of the generated text.

§

impl citem_t

pub unsafe fn swap(self: Pin<&mut citem_t>, r: Pin<&mut citem_t>)

Swap two citem_t

pub unsafe fn new(o: ctype_t) -> impl New<Output = Self>

Trait Implementations§

§

impl AsRef<citem_t> for cexpr_t

§

fn as_ref(self: &cexpr_t) -> &citem_t

Converts this type into a shared reference of the (usually inferred) input type.
§

impl AsRef<citem_t> for cinsn_t

§

fn as_ref(self: &cinsn_t) -> &citem_t

Converts this type into a shared reference of the (usually inferred) input type.
§

impl CopyNew for citem_t

§

unsafe fn copy_new(other: &citem_t, this: Pin<&mut MaybeUninit<citem_t>>)

Synthesized copy constructor.

§

impl Drop for citem_t

§

fn drop(self: &mut citem_t)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more
§

impl ExternType for citem_t

§

type Id = (c, i, t, e, m, __, t)

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

type Kind = Opaque

§

impl MakeCppStorage for citem_t

§

unsafe fn allocate_uninitialized_cpp_storage() -> *mut citem_t

Allocates heap space for this type in C++ and return a pointer to that space, but do not initialize that space (i.e. do not yet call a constructor). Read more
§

unsafe fn free_uninitialized_cpp_storage(arg0: *mut citem_t)

Frees a C++ allocation which has not yet had a constructor called. Read more
§

impl SharedPtrTarget for citem_t

§

impl UniquePtrTarget for citem_t

§

impl WeakPtrTarget for citem_t

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

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.