pub struct TxRef<T> { /* private fields */ }
Implementations§
Source§impl<T> TxRef<T>
impl<T> TxRef<T>
pub fn as_mut(&mut self) -> RefMut<'_, T>
pub unsafe fn from_raw_parts<B>(tx: TxObject<B>, ptr: *mut T) -> Self
pub fn offset(&self) -> u64
pub fn tx(&self) -> &TxObject<()>
pub fn tx_mut(&mut self) -> &mut TxObject<()>
pub fn into_tx(self) -> TxObject<()>
pub fn raw(&self) -> *mut T
pub fn handle(&self) -> &ObjectHandle
pub fn global(&self) -> GlobalPtr<T>
pub unsafe fn cast<U>(self) -> TxRef<U>
Trait Implementations§
Source§impl<T> AsRef<ObjectHandle> for TxRef<T>
impl<T> AsRef<ObjectHandle> for TxRef<T>
Source§fn as_ref(&self) -> &ObjectHandle
fn as_ref(&self) -> &ObjectHandle
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<T> BorrowMut<T> for TxRef<T>
impl<T> BorrowMut<T> for TxRef<T>
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Into<ObjectHandle> for &TxRef<T>
impl<T> Into<ObjectHandle> for &TxRef<T>
Source§fn into(self) -> ObjectHandle
fn into(self) -> ObjectHandle
Converts this type into the (usually inferred) input type.
Source§impl<T> Into<ObjectHandle> for TxRef<T>
impl<T> Into<ObjectHandle> for TxRef<T>
Source§fn into(self) -> ObjectHandle
fn into(self) -> ObjectHandle
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl<T> Freeze for TxRef<T>
impl<T> !ObjSafe for TxRef<T>
impl<T> RefUnwindSafe for TxRef<T>where
T: RefUnwindSafe,
impl<T> !Send for TxRef<T>
impl<T> StoreCopy for TxRef<T>where
T: StoreCopy,
impl<T> !Sync for TxRef<T>
impl<T> Unpin for TxRef<T>
impl<T> UnwindSafe for TxRef<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