pub struct FixedVecUncheckedIter<'a, T, W, E, B>{ /* private fields */ }
Expand description
An unchecked iterator over the elements of a FixedVec
.
This struct is created by the iter_unchecked
method. It does not perform any bounds checking.
§Safety
The iterator is safe to use only if it is guaranteed that it will not be advanced beyond the end of the vector.
Implementations§
Source§impl<'a, T, W, E, B> FixedVecUncheckedIter<'a, T, W, E, B>
impl<'a, T, W, E, B> FixedVecUncheckedIter<'a, T, W, E, B>
Sourcepub unsafe fn next_unchecked(&mut self) -> T
pub unsafe fn next_unchecked(&mut self) -> T
Returns the next element without bounds checking.
§Safety
Calling this method when the iterator is exhausted is undefined behavior.
Sourcepub unsafe fn next_back_unchecked(&mut self) -> T
pub unsafe fn next_back_unchecked(&mut self) -> T
Returns the next element from the back without bounds checking.
§Safety
Calling this method when the iterator is exhausted is undefined behavior.
Auto Trait Implementations§
impl<'a, T, W, E, B> Freeze for FixedVecUncheckedIter<'a, T, W, E, B>where
W: Freeze,
impl<'a, T, W, E, B> RefUnwindSafe for FixedVecUncheckedIter<'a, T, W, E, B>
impl<'a, T, W, E, B> Send for FixedVecUncheckedIter<'a, T, W, E, B>
impl<'a, T, W, E, B> Sync for FixedVecUncheckedIter<'a, T, W, E, B>
impl<'a, T, W, E, B> Unpin for FixedVecUncheckedIter<'a, T, W, E, B>
impl<'a, T, W, E, B> UnwindSafe for FixedVecUncheckedIter<'a, T, W, E, B>where
W: UnwindSafe + RefUnwindSafe,
T: UnwindSafe + RefUnwindSafe,
B: RefUnwindSafe,
E: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
Source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
Source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
Source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
Source§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.