Struct broccoli_tree::aabb_pin::AabbPin
source · [−]#[repr(transparent)]pub struct AabbPin<T: ?Sized> { /* private fields */ }
Expand description
A protected mutable reference that derefs to &T
.
See the AabbPin module documentation for more explanation.
Implementations
sourceimpl<'a, T> AabbPin<&'a mut T>
impl<'a, T> AabbPin<&'a mut T>
pub fn into_slice(self) -> AabbPin<&'a mut [T]>
sourceimpl<'a, 'b: 'a, T: Aabb> AabbPin<&'a mut Node<'b, T>>
impl<'a, 'b: 'a, T: Aabb> AabbPin<&'a mut Node<'b, T>>
sourcepub fn into_node_ref(self) -> NodeRef<'a, T>
pub fn into_node_ref(self) -> NodeRef<'a, T>
Destructure a node into its three parts.
pub fn get_cont(&self) -> &Range<T::Num>
sourcepub fn into_range(self) -> AabbPin<&'a mut [T]>
pub fn into_range(self) -> AabbPin<&'a mut [T]>
Return a mutable list of elements in this node.
sourceimpl<'a, T: HasInner> AabbPin<&'a mut T>
impl<'a, T: HasInner> AabbPin<&'a mut T>
sourcepub fn unpack_inner(self) -> &'a mut T::Inner
pub fn unpack_inner(self) -> &'a mut T::Inner
Unpack only the mutable innner component
sourceimpl<'a, T> AabbPin<&'a mut [T]>
impl<'a, T> AabbPin<&'a mut [T]>
sourcepub fn get_index_mut(self, ind: usize) -> AabbPin<&'a mut T>
pub fn get_index_mut(self, ind: usize) -> AabbPin<&'a mut T>
Return the element at the specified index. We can’t use the index trait because we don’t want to return a mutable reference.
sourcepub fn split_at_mut(
self,
va: usize
) -> (AabbPin<&'a mut [T]>, AabbPin<&'a mut [T]>)
pub fn split_at_mut(
self,
va: usize
) -> (AabbPin<&'a mut [T]>, AabbPin<&'a mut [T]>)
Split off the first element.
sourcepub fn split_first_mut(
self
) -> Option<(AabbPin<&'a mut T>, AabbPin<&'a mut [T]>)>
pub fn split_first_mut(
self
) -> Option<(AabbPin<&'a mut T>, AabbPin<&'a mut [T]>)>
Split off the first element.
sourcepub fn truncate_to(self, a: RangeTo<usize>) -> Self
pub fn truncate_to(self, a: RangeTo<usize>) -> Self
Return a smaller slice that ends with the specified index.
sourcepub fn truncate_from(self, a: RangeFrom<usize>) -> Self
pub fn truncate_from(self, a: RangeFrom<usize>) -> Self
Return a smaller slice that starts at the specified index.
sourcepub fn truncate(self, a: Range<usize>) -> Self
pub fn truncate(self, a: Range<usize>) -> Self
Return a smaller slice that starts and ends with the specified range.
sourcepub fn iter_mut(self) -> AabbPinIter<'a, T>ⓘNotable traits for AabbPinIter<'a, T>impl<'a, T> Iterator for AabbPinIter<'a, T> type Item = AabbPin<&'a mut T>;
pub fn iter_mut(self) -> AabbPinIter<'a, T>ⓘNotable traits for AabbPinIter<'a, T>impl<'a, T> Iterator for AabbPinIter<'a, T> type Item = AabbPin<&'a mut T>;
Return a mutable iterator.
Trait Implementations
sourceimpl<'a, T> IntoIterator for AabbPin<&'a mut [T]>
impl<'a, T> IntoIterator for AabbPin<&'a mut [T]>
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for AabbPin<T> where
T: RefUnwindSafe,
impl<T: ?Sized> Send for AabbPin<T> where
T: Send,
impl<T: ?Sized> Sync for AabbPin<T> where
T: Sync,
impl<T: ?Sized> Unpin for AabbPin<T> where
T: Unpin,
impl<T: ?Sized> UnwindSafe for AabbPin<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more