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.
Unpack only the mutable innner component
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.