pub struct ValidatedStrategyVTable { /* private fields */ }Expand description
Host-side pointer to a validated StrategyVTable.
Implementations§
Source§impl ValidatedStrategyVTable
impl ValidatedStrategyVTable
Sourcepub unsafe fn from_raw_unchecked(ptr: *const StrategyVTable) -> Self
pub unsafe fn from_raw_unchecked(ptr: *const StrategyVTable) -> Self
Wraps a strategy vtable pointer that the caller already validated.
§Safety
ptr must be non-null, point at immutable process-lifetime storage,
and contain every required StrategyVTable function slot.
Sourcepub fn as_ptr(self) -> *const StrategyVTable
pub fn as_ptr(self) -> *const StrategyVTable
Returns the raw vtable pointer for ABI calls.
Trait Implementations§
Source§impl Clone for ValidatedStrategyVTable
impl Clone for ValidatedStrategyVTable
Source§fn clone(&self) -> ValidatedStrategyVTable
fn clone(&self) -> ValidatedStrategyVTable
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 ValidatedStrategyVTable
Source§impl Debug for ValidatedStrategyVTable
impl Debug for ValidatedStrategyVTable
impl Eq for ValidatedStrategyVTable
Source§impl PartialEq for ValidatedStrategyVTable
impl PartialEq for ValidatedStrategyVTable
Source§fn eq(&self, other: &ValidatedStrategyVTable) -> bool
fn eq(&self, other: &ValidatedStrategyVTable) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Send for ValidatedStrategyVTable
Available on crate feature
host only.SAFETY: validated vtables point at immutable process-lifetime storage.
impl StructuralPartialEq for ValidatedStrategyVTable
impl Sync for ValidatedStrategyVTable
Available on crate feature
host only.SAFETY: see Send.
Auto Trait Implementations§
impl Freeze for ValidatedStrategyVTable
impl RefUnwindSafe for ValidatedStrategyVTable
impl Unpin for ValidatedStrategyVTable
impl UnsafeUnpin for ValidatedStrategyVTable
impl UnwindSafe for ValidatedStrategyVTable
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.