Struct idalib_sys::segment::lock_segment

#[repr(C, align(8))]
pub struct lock_segment { /* private fields */ }
Expand description

Helper class to lock a segment pointer so it stays valid

Implementations§

§

impl lock_segment

pub unsafe fn new(_segm: *const segment_t) -> impl New<Output = Self>

Trait Implementations§

§

impl CopyNew for lock_segment

§

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

Synthesized copy constructor.

§

impl Drop for lock_segment

§

fn drop(self: &mut lock_segment)

Executes the destructor for this type. Read more
§

impl ExternType for lock_segment

§

type Id = (l, o, c, k, __, s, e, g, m, e, n, t)

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

type Kind = Opaque

§

impl MakeCppStorage for lock_segment

§

unsafe fn allocate_uninitialized_cpp_storage() -> *mut lock_segment

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 lock_segment)

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

impl SharedPtrTarget for lock_segment

§

impl UniquePtrTarget for lock_segment

§

impl WeakPtrTarget for lock_segment

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.