pub struct ValidatedCustomDataVTable { /* private fields */ }Expand description
Host-side pointer to a validated CustomDataVTable.
Implementations§
Source§impl ValidatedCustomDataVTable
impl ValidatedCustomDataVTable
Sourcepub unsafe fn from_raw_unchecked(ptr: *const CustomDataVTable) -> Self
pub unsafe fn from_raw_unchecked(ptr: *const CustomDataVTable) -> Self
Wraps a custom-data vtable pointer that the caller already validated.
§Safety
ptr must be non-null, point at immutable process-lifetime storage,
and contain every required CustomDataVTable function slot.
Sourcepub fn as_ptr(self) -> *const CustomDataVTable
pub fn as_ptr(self) -> *const CustomDataVTable
Returns the raw vtable pointer for ABI calls.
Trait Implementations§
Source§impl Clone for ValidatedCustomDataVTable
impl Clone for ValidatedCustomDataVTable
Source§fn clone(&self) -> ValidatedCustomDataVTable
fn clone(&self) -> ValidatedCustomDataVTable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ValidatedCustomDataVTable
Source§impl Debug for ValidatedCustomDataVTable
impl Debug for ValidatedCustomDataVTable
impl Eq for ValidatedCustomDataVTable
Source§impl PartialEq for ValidatedCustomDataVTable
impl PartialEq for ValidatedCustomDataVTable
Source§fn eq(&self, other: &ValidatedCustomDataVTable) -> bool
fn eq(&self, other: &ValidatedCustomDataVTable) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Send for ValidatedCustomDataVTable
Available on crate feature
host only.SAFETY: validated vtables point at immutable process-lifetime storage.
impl StructuralPartialEq for ValidatedCustomDataVTable
impl Sync for ValidatedCustomDataVTable
Available on crate feature
host only.SAFETY: see Send.
Auto Trait Implementations§
impl Freeze for ValidatedCustomDataVTable
impl RefUnwindSafe for ValidatedCustomDataVTable
impl Unpin for ValidatedCustomDataVTable
impl UnsafeUnpin for ValidatedCustomDataVTable
impl UnwindSafe for ValidatedCustomDataVTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.