[][src]Struct dinotree_alg::pmut::PMut

pub struct PMut<'a, T: ?Sized> { /* fields omitted */ }

A protected mutable reference. See the pmut module documentation for more explanation.

Methods

impl<'a, T: ?Sized> PMut<'a, T>[src]

pub fn new(inner: &'a mut T) -> PMut<'a, T>[src]

pub fn as_mut(&mut self) -> PMut<T>[src]

Important traits for &'_ mut I
pub fn as_ref(&self) -> &T[src]

impl<'a, T: Node> PMut<'a, T>[src]

pub fn get(self) -> NodeRef<'a, T::T>[src]

pub fn get_mut(self) -> NodeRefMut<'a, T::T>[src]

impl<'a, T> PMut<'a, [T]>[src]

pub fn len(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

pub fn split_first_mut(self) -> Option<(PMut<'a, T>, PMut<'a, [T]>)>[src]

pub fn truncate_to(self, a: RangeTo<usize>) -> Self[src]

pub fn truncate_from(self, a: RangeFrom<usize>) -> Self[src]

pub fn truncate(self, a: Range<usize>) -> Self[src]

Important traits for Iter<'a, T>
pub fn iter(self) -> Iter<'a, T>[src]

Important traits for PMutIter<'a, T>
pub fn iter_mut(self) -> PMutIter<'a, T>[src]

Trait Implementations

impl<'a, T: Aabb> Aabb for PMut<'a, T>[src]

type Num = T::Num

impl<'a, T: HasInner> HasInner for PMut<'a, T>[src]

type Inner = T::Inner

impl<'a, T> IntoIterator for PMut<'a, [T]>[src]

type Item = PMut<'a, T>

The type of the elements being iterated over.

type IntoIter = PMutIter<'a, T>

Which kind of iterator are we turning this into?

Auto Trait Implementations

impl<'a, T: ?Sized> RefUnwindSafe for PMut<'a, T> where
    T: RefUnwindSafe

impl<'a, T: ?Sized> Send for PMut<'a, T> where
    T: Send

impl<'a, T: ?Sized> Sync for PMut<'a, T> where
    T: Sync

impl<'a, T: ?Sized> Unpin for PMut<'a, T>

impl<'a, T> !UnwindSafe for PMut<'a, T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.