Struct idalib_sys::range_t

#[repr(C)]
pub struct range_t { pub start_ea: ea_t, pub end_ea: ea_t, }
Expand description

\file lines.hpp

\brief High level functions that deal with the generation of the disassembled text lines.

This file also contains definitions for the syntax highlighting.

Finally there are functions that deal with anterior/posterior user-defined lines.

Fields§

§start_ea: ea_t

< start_ea included

§end_ea: ea_t

< end_ea excluded

Implementations§

§

impl range_t

pub unsafe fn new(ea1: c_ulonglong, ea2: c_ulonglong) -> impl New<Output = Self>

§

impl range_t

pub unsafe fn compare(&self, r: &range_t) -> c_int

§

impl range_t

pub unsafe fn contains(&self, ea: c_ulonglong) -> bool

Is ‘ea’ in the address range?

§

impl range_t

pub unsafe fn contains1(&self, r: &range_t) -> bool

Is every ea in ‘r’ also in this range_t?

§

impl range_t

pub unsafe fn overlaps(&self, r: &range_t) -> bool

Is there an ea in ‘r’ that is also in this range_t?

§

impl range_t

pub unsafe fn clear(self: Pin<&mut Self>)

Set #start_ea, #end_ea to 0

§

impl range_t

pub unsafe fn empty(&self) -> bool

Is the size of the range_t <= 0?

§

impl range_t

pub unsafe fn size(&self) -> c_ulonglong

Get #end_ea - #start_ea

§

impl range_t

pub unsafe fn intersect(self: Pin<&mut Self>, r: &range_t)

Assign the range_t to the intersection between the range_t and ‘r’

§

impl range_t

pub unsafe fn extend(self: Pin<&mut Self>, ea: c_ulonglong)

Ensure that the range_t includes ‘ea’

§

impl range_t

pub unsafe fn print(&self, buf: *mut c_char, bufsize: usize) -> usize

Print the range_t. \param buf the output buffer \param bufsize the size of the buffer

Trait Implementations§

§

impl AsRef<range_t> for func_t

§

fn as_ref(self: &func_t) -> &range_t

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

impl AsRef<range_t> for qbasic_block_t

§

fn as_ref(self: &qbasic_block_t) -> &range_t

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

impl AsRef<range_t> for segment_t

§

fn as_ref(self: &segment_t) -> &range_t

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

impl CopyNew for range_t

§

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

Synthesized copy constructor.

§

impl Drop for range_t

§

fn drop(self: &mut range_t)

Synthesized destructor.

§

impl ExternType for range_t

§

type Id = (r, a, n, g, e, __, t)

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

type Kind = Trivial

§

impl MakeCppStorage for range_t

§

unsafe fn allocate_uninitialized_cpp_storage() -> *mut range_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 range_t)

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

impl MoveNew for range_t

§

unsafe fn move_new( other: Pin<MoveRef<'_, range_t>>, this: Pin<&mut MaybeUninit<range_t>>, )

Synthesized move constructor.

§

impl SharedPtrTarget for range_t

§

impl UniquePtrTarget for range_t

§

impl VectorElement for range_t

§

impl WeakPtrTarget for range_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.
§

impl<T> WithinBoxTrivial for T
where T: ExternType<Kind = Trivial> + Unpin,

§

fn within_box(self) -> Pin<Box<T>>

§

impl<T> WithinUniquePtrTrivial for T
where T: UniquePtrTarget + ExternType<Kind = Trivial> + Unpin,