[−][src]Struct intrusive_collections::DefaultPointerOps
The PointerOps type used by an Adapter generated by intrusive_adapter!.
Implementations
impl<Pointer> DefaultPointerOps<Pointer>[src]
pub const fn new() -> DefaultPointerOps<Pointer>[src]
Constructs an instance of DefaultPointerOps.
Trait Implementations
impl<Pointer> Clone for DefaultPointerOps<Pointer>[src]
fn clone(&self) -> Self[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<Pointer> Copy for DefaultPointerOps<Pointer>[src]
impl<Pointer> Default for DefaultPointerOps<Pointer>[src]
impl<'a, T: ?Sized> PointerOps for DefaultPointerOps<&'a T>[src]
type Value = T
Object type which is inserted into an intrusive collection.
type Pointer = &'a T
Pointer type which owns an instance of a value.
unsafe fn from_raw(&self, raw: *const T) -> &'a T[src]
fn into_raw(&self, ptr: &'a T) -> *const T[src]
impl<T: ?Sized> PointerOps for DefaultPointerOps<UnsafeRef<T>>[src]
type Value = T
Object type which is inserted into an intrusive collection.
type Pointer = UnsafeRef<T>
Pointer type which owns an instance of a value.
unsafe fn from_raw(&self, raw: *const T) -> UnsafeRef<T>[src]
fn into_raw(&self, ptr: UnsafeRef<T>) -> *const T[src]
impl<T: ?Sized> PointerOps for DefaultPointerOps<Box<T>>[src]
type Value = T
Object type which is inserted into an intrusive collection.
type Pointer = Box<T>
Pointer type which owns an instance of a value.
unsafe fn from_raw(&self, raw: *const T) -> Box<T>[src]
fn into_raw(&self, ptr: Box<T>) -> *const T[src]
impl<T: ?Sized> PointerOps for DefaultPointerOps<Rc<T>>[src]
type Value = T
Object type which is inserted into an intrusive collection.
type Pointer = Rc<T>
Pointer type which owns an instance of a value.
unsafe fn from_raw(&self, raw: *const T) -> Rc<T>[src]
fn into_raw(&self, ptr: Rc<T>) -> *const T[src]
impl<T: ?Sized> PointerOps for DefaultPointerOps<Arc<T>>[src]
Auto Trait Implementations
impl<Pointer> Send for DefaultPointerOps<Pointer> where
Pointer: Send,
Pointer: Send,
impl<Pointer> Sync for DefaultPointerOps<Pointer> where
Pointer: Sync,
Pointer: Sync,
impl<Pointer> Unpin for DefaultPointerOps<Pointer> where
Pointer: Unpin,
Pointer: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,