#[repr(C)]pub struct DefaultDelete {
pub _address: u8,
}Expand description
A default deletion policy using plain old operator delete.
Note that this type can be specialized, but authors should beware of the risk that the specialization may at some point cease to match (either because it gets moved to a different compilation unit or the signature changes). If the non-specialized (|delete|-based) version compiles for that type but does the wrong thing, bad things could happen.
This is a non-issue for types which are always incomplete (i.e. opaque handle types), since |delete|-ing such a type will always trigger a compilation error.
Fields§
§_address: u8Trait Implementations§
Source§impl Clone for DefaultDelete
impl Clone for DefaultDelete
Source§fn clone(&self) -> DefaultDelete
fn clone(&self) -> DefaultDelete
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DefaultDelete
impl Debug for DefaultDelete
Source§impl PartialEq for DefaultDelete
impl PartialEq for DefaultDelete
impl Copy for DefaultDelete
impl StructuralPartialEq for DefaultDelete
Auto Trait Implementations§
impl Freeze for DefaultDelete
impl RefUnwindSafe for DefaultDelete
impl Send for DefaultDelete
impl Sync for DefaultDelete
impl Unpin for DefaultDelete
impl UnwindSafe for DefaultDelete
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
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>
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: 1 byte