Struct containerof::BorrowBoxMut
[−]
[src]
pub struct BorrowBoxMut<'a, T: 'a> where T: Intrusive {
// some 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
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>
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.