#[repr(C)]pub struct InvPtr<T: Invariant> { /* private fields */ }
Implementations§
Source§impl<T: Invariant> InvPtr<T>
impl<T: Invariant> InvPtr<T>
pub fn global(&self) -> GlobalPtr<T>
pub unsafe fn resolve(&self) -> Ref<'_, T>
pub unsafe fn resolve_mut(&self) -> RefMut<'_, T>
pub fn null() -> Self
pub fn is_null(&self) -> bool
pub fn from_raw_parts(idx: u32, offset: u64) -> Self
pub fn set(&mut self, gp: impl Into<GlobalPtr<T>>) -> Result<()>
pub fn fot_index(&self) -> u64
pub fn is_local(&self) -> bool
pub fn offset(&self) -> u64
pub fn raw(&self) -> u64
pub fn new( tx: impl AsRef<ObjectHandle>, gp: impl Into<GlobalPtr<T>>, ) -> Result<Self>
Trait Implementations§
Source§impl<T: Ord + Invariant> Ord for InvPtr<T>
impl<T: Ord + Invariant> Ord for InvPtr<T>
Source§impl<T: PartialOrd + Invariant> PartialOrd for InvPtr<T>
impl<T: PartialOrd + Invariant> PartialOrd for InvPtr<T>
impl<T: Eq + Invariant> Eq for InvPtr<T>
impl<T: Invariant> Invariant for InvPtr<T>
impl<T: Invariant> StructuralPartialEq for InvPtr<T>
Auto Trait Implementations§
impl<T> Freeze for InvPtr<T>
impl<T> !ObjSafe for InvPtr<T>
impl<T> RefUnwindSafe for InvPtr<T>where
T: RefUnwindSafe,
impl<T> !Send for InvPtr<T>
impl<T> !StoreCopy for InvPtr<T>
impl<T> !Sync for InvPtr<T>
impl<T> !Unpin for InvPtr<T>
impl<T> UnwindSafe for InvPtr<T>where
T: RefUnwindSafe,
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