#[repr(C)]pub struct MutableHandle<T> {
pub _phantom_0: PhantomData<UnsafeCell<T>>,
pub ptr: *mut T,
}Expand description
Similar to a handle, but the underlying storage can be changed. This is useful for outparams.
If you want to add additional methods to MutableHandle for a specific
specialization, define a MutableHandleOperations
Fields§
§_phantom_0: PhantomData<UnsafeCell<T>>§ptr: *mut TImplementations§
Trait Implementations§
Source§impl<T> Clone for MutableHandle<T>where
T: Clone,
impl<T> Clone for MutableHandle<T>where
T: Clone,
Source§fn clone(&self) -> MutableHandle<T>
fn clone(&self) -> MutableHandle<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> Debug for MutableHandle<T>where
T: Debug,
impl<T> Debug for MutableHandle<T>where
T: Debug,
Source§impl<T> Deref for MutableHandle<T>
impl<T> Deref for MutableHandle<T>
Source§impl<T> From<T> for MutableHandle<<T as IntoHandle>::Target>where
T: IntoMutableHandle,
impl<T> From<T> for MutableHandle<<T as IntoHandle>::Target>where
T: IntoMutableHandle,
Source§fn from(value: T) -> MutableHandle<<T as IntoHandle>::Target>
fn from(value: T) -> MutableHandle<<T as IntoHandle>::Target>
Converts to this type from the input type.
Source§impl<T> PartialEq for MutableHandle<T>where
T: PartialEq,
impl<T> PartialEq for MutableHandle<T>where
T: PartialEq,
impl<T> Copy for MutableHandle<T>where
T: Copy,
impl<T> StructuralPartialEq for MutableHandle<T>
Auto Trait Implementations§
impl<T> Freeze for MutableHandle<T>
impl<T> !RefUnwindSafe for MutableHandle<T>
impl<T> !Send for MutableHandle<T>
impl<T> !Sync for MutableHandle<T>
impl<T> Unpin for MutableHandle<T>where
T: Unpin,
impl<T> UnwindSafe for MutableHandle<T>where
T: RefUnwindSafe + 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes