Struct containerof::BorrowBoxMut
[−]
[src]
pub struct BorrowBoxMut<'a, T: 'a> where
T: Intrusive, { /* fields omitted */ }
A mutable borrow-pointer that does not require explicit ownership of the value being borrowed. Used to allow construction of the Intrusive structure translation type from a mutable borrow pointer.
Methods
impl<'a, T> BorrowBoxMut<'a, T> where
T: Intrusive,
[src]
T: Intrusive,
fn new(source: &'a mut T) -> BorrowBoxMut<'a, T>
Build a BorrowBoxMut from a borrow pointer.
unsafe fn new_from<U>(
pointer: IntrusiveAlias,
_lifetime: &'a mut U
) -> BorrowBoxMut<'a, T>
pointer: IntrusiveAlias,
_lifetime: &'a mut U
) -> BorrowBoxMut<'a, T>
Build a BorrowBoxMut from a raw pointer and a lifetime. Unsafe, because this API cannot guarantee that the pointer value is of the same type as the destination borrow box.
Trait Implementations
impl<'a, T: Debug + 'a> Debug for BorrowBoxMut<'a, T> where
T: Intrusive,
[src]
T: Intrusive,
impl<'a, T> Deref for BorrowBoxMut<'a, T> where
T: Intrusive,
[src]
T: Intrusive,
type Target = T
The resulting type after dereferencing
fn deref<'b>(&'b self) -> &'b T
The method called to dereference a value
impl<'a, T> DerefMut for BorrowBoxMut<'a, T> where
T: Intrusive,
[src]
T: Intrusive,
fn deref_mut<'b>(&'b mut self) -> &'b mut T
The method called to mutably dereference a value