pub struct TempValue<Op: Operation> { /* private fields */ }Expand description
Temporary existing value in memory. Data will be erased with TempValue destruction.
Have internal &mut AnyVec.
May do some postponed actions on consumption/destruction.
Trait Implementations§
Source§impl<Op: Operation> AnyValueCloneable for TempValue<Op>where
Op::AnyVecPtr: IAnyVecPtr,
<Op::AnyVecPtr as IAnyVecPtr>::Traits: Cloneable,
impl<Op: Operation> AnyValueCloneable for TempValue<Op>where
Op::AnyVecPtr: IAnyVecPtr,
<Op::AnyVecPtr as IAnyVecPtr>::Traits: Cloneable,
unsafe fn clone_into(&self, out: *mut u8)
fn lazy_clone(&self) -> LazyClone<'_, Self>where
Self: Sized,
Source§impl<Op: Operation> AnyValueMut for TempValue<Op>
impl<Op: Operation> AnyValueMut for TempValue<Op>
fn downcast_mut<T: 'static>(&mut self) -> Option<&mut T>
Source§fn swap<Other: AnyValueMut>(&mut self, other: &mut Other)
fn swap<Other: AnyValueMut>(&mut self, other: &mut Other)
Swaps underlying values. Read more
Source§impl<Op: Operation> AnyValueSizeless for TempValue<Op>
impl<Op: Operation> AnyValueSizeless for TempValue<Op>
Source§fn as_bytes_ptr(&self) -> *const u8
fn as_bytes_ptr(&self) -> *const u8
Aligned address.
Source§unsafe fn move_into<KnownType: 'static>(self, out: *mut u8, bytes_size: usize)
unsafe fn move_into<KnownType: 'static>(self, out: *mut u8, bytes_size: usize)
Move self into
out. Read moreunsafe fn downcast_ref_unchecked<T>(&self) -> &T
unsafe fn downcast_unchecked<T: 'static>(self) -> Twhere
Self: Sized,
Source§impl<Op: Operation> AnyValueSizelessMut for TempValue<Op>
impl<Op: Operation> AnyValueSizelessMut for TempValue<Op>
Source§fn as_bytes_mut_ptr(&mut self) -> *mut u8
fn as_bytes_mut_ptr(&mut self) -> *mut u8
Aligned address.
unsafe fn downcast_mut_unchecked<T>(&mut self) -> &mut T
Source§impl<Op: Operation> AnyValueTypeless for TempValue<Op>
impl<Op: Operation> AnyValueTypeless for TempValue<Op>
Source§impl<Op: Operation> AnyValueTypelessMut for TempValue<Op>
impl<Op: Operation> AnyValueTypelessMut for TempValue<Op>
fn as_bytes_mut(&mut self) -> &mut [u8]
unsafe fn swap_unchecked<Other: AnyValueMut>(&mut self, other: &mut Other)
impl<Op: Operation> Send for TempValue<Op>
impl<Op: Operation> Sync for TempValue<Op>
Auto Trait Implementations§
impl<Op> Freeze for TempValue<Op>where
Op: Freeze,
impl<Op> RefUnwindSafe for TempValue<Op>where
Op: RefUnwindSafe,
impl<Op> Unpin for TempValue<Op>where
Op: Unpin,
impl<Op> UnwindSafe for TempValue<Op>where
Op: UnwindSafe,
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