[−][src]Struct legion::borrows::BorrowedMutSlice
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?
fn into_iter(self) -> Self::IntoIter
[src]
impl<'a, T: 'a> Deref for BorrowedMutSlice<'a, T>
[src]
impl<'a, T: 'a> DerefMut for BorrowedMutSlice<'a, T>
[src]
Auto Trait Implementations
impl<'a, T> Send for BorrowedMutSlice<'a, T> where
T: Send,
T: Send,
impl<'a, T> Sync for BorrowedMutSlice<'a, T> where
T: Sync,
T: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
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?
fn into_iter(self) -> I
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,