Struct broccoli::pmut::PMut [−][src]
#[repr(transparent)]pub struct PMut<'a, T: ?Sized> { /* fields omitted */ }
Expand description
A protected mutable reference that derefs to &T.
See the pmut module documentation for more explanation.
Implementations
Convert a PMut<T> inside a PMut<[T]> of size one.
Start a new borrow lifetime
If this function were safe, it would defeat the purpose of this type.
Safety
This is unsafe, since the user may mutate the inner AABB while T is inserted in a tree thus undoing the whole point of this struct.
Destructure a node into its three parts.
Return a mutable list of elements in this node.
Return the element at the specified index. We can’t use the index trait because we don’t want to return a mutable reference.
Split off the first element.
Return a smaller slice that ends with the specified index.
Return a smaller slice that starts at the specified index.
Return a smaller slice that starts and ends with the specified range.
Trait Implementations
Auto Trait Implementations
impl<'a, T: ?Sized> RefUnwindSafe for PMut<'a, T> where
T: RefUnwindSafe, impl<'a, T> !UnwindSafe for PMut<'a, T>