[][src]Struct legion::borrows::BorrowedMutSlice

pub struct BorrowedMutSlice<'a, T: 'a> { /* fields omitted */ }

Represents a runtime borrow checked mut slice.

Methods

impl<'a, T: 'a> BorrowedMutSlice<'a, T>[src]

pub fn new(slice: &'a mut [T], borrow: Borrow<'a>) -> BorrowedMutSlice<'a, T>[src]

Constructs a new BorrowedMutSlice<'a, T>.

pub fn single(self, i: usize) -> Option<BorrowedMut<'a, T>>[src]

Borrows a single element from the slice.

Trait Implementations

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

type Item = &'a mut T

The type of the elements being iterated over.

type IntoIter = BorrowedIter<'a, IterMut<'a, T>>

Which kind of iterator are we turning this into?

impl<'a, T: 'a> Deref for BorrowedMutSlice<'a, T>[src]

type Target = [T]

The resulting type after dereferencing.

impl<'a, T: 'a> DerefMut for BorrowedMutSlice<'a, T>[src]

Auto Trait Implementations

impl<'a, T> Send for BorrowedMutSlice<'a, T> where
    T: Send

impl<'a, T> Sync for BorrowedMutSlice<'a, T> where
    T: Sync

Blanket Implementations

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

impl<T> From for 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 for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

impl<T> Downcast for T where
    T: Any
[src]

impl<T> Erased for T