Struct idalib_sys::func::lock_func

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

Helper class to lock a function pointer so it stays valid

Implementations§

§

impl lock_func

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

Trait Implementations§

§

impl CopyNew for lock_func

§

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

Synthesized copy constructor.

§

impl Drop for lock_func

§

fn drop(self: &mut lock_func)

Executes the destructor for this type. Read more
§

impl ExternType for lock_func

§

type Id = (l, o, c, k, __, f, u, n, c)

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

type Kind = Opaque

§

impl MakeCppStorage for lock_func

§

unsafe fn allocate_uninitialized_cpp_storage() -> *mut lock_func

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

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

impl SharedPtrTarget for lock_func

§

impl UniquePtrTarget for lock_func

§

impl WeakPtrTarget for lock_func

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.