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