#[repr(transparent)]pub struct IntoIterWrapper<I, K> {
pub iter: ManuallyDrop<I>,
pub marker: IsConstIntoIter<I, K>,
}
Expand description
Wrapper for ConstIntoIter
implementors,
that defines different methods depending on the
value of K
.
Fields§
§iter: ManuallyDrop<I>
§marker: IsConstIntoIter<I, K>
Implementations§
Source§impl<T> IntoIterWrapper<Range<T>, IsStdKind>where
T: Step,
impl<T> IntoIterWrapper<Range<T>, IsStdKind>where
T: Step,
pub const fn const_into_iter(self) -> RangeIter<T>
Source§impl<T> IntoIterWrapper<RangeInclusive<T>, IsStdKind>where
T: Step,
impl<T> IntoIterWrapper<RangeInclusive<T>, IsStdKind>where
T: Step,
pub const fn const_into_iter(self) -> RangeInclusiveIter<T>
Source§impl<T> IntoIterWrapper<RangeFrom<T>, IsStdKind>where
T: Step,
impl<T> IntoIterWrapper<RangeFrom<T>, IsStdKind>where
T: Step,
pub const fn const_into_iter(self) -> RangeFromIter<T>
Source§impl<T> IntoIterWrapper<&Range<T>, IsStdKind>where
T: Step,
impl<T> IntoIterWrapper<&Range<T>, IsStdKind>where
T: Step,
pub const fn const_into_iter(self) -> RangeIter<T>
Source§impl<T> IntoIterWrapper<&RangeInclusive<T>, IsStdKind>where
T: Step,
impl<T> IntoIterWrapper<&RangeInclusive<T>, IsStdKind>where
T: Step,
pub const fn const_into_iter(self) -> RangeInclusiveIter<T>
Source§impl<T> IntoIterWrapper<&RangeFrom<T>, IsStdKind>where
T: Step,
impl<T> IntoIterWrapper<&RangeFrom<T>, IsStdKind>where
T: Step,
pub const fn const_into_iter(self) -> RangeFromIter<T>
Source§impl<'a, T, const N: usize> IntoIterWrapper<&'a [T; N], IsStdKind>
impl<'a, T, const N: usize> IntoIterWrapper<&'a [T; N], IsStdKind>
pub const fn const_into_iter(self) -> Iter<'a, T>
Source§impl<'a, T, const N: usize> IntoIterWrapper<&&'a [T; N], IsStdKind>
impl<'a, T, const N: usize> IntoIterWrapper<&&'a [T; N], IsStdKind>
pub const fn const_into_iter(self) -> Iter<'a, T>
Source§impl<'a, T> IntoIterWrapper<&'a [T], IsStdKind>
impl<'a, T> IntoIterWrapper<&'a [T], IsStdKind>
pub const fn const_into_iter(self) -> Iter<'a, T>
Source§impl<'a, T> IntoIterWrapper<&&'a [T], IsStdKind>
impl<'a, T> IntoIterWrapper<&&'a [T], IsStdKind>
pub const fn const_into_iter(self) -> Iter<'a, T>
Source§impl<T> IntoIterWrapper<T, IsStdKind>
impl<T> IntoIterWrapper<T, IsStdKind>
pub const fn coerce(self) -> IntoIterWrapper<T, IsStdKind>
Source§impl<T> IntoIterWrapper<T, IsIntoIterKind>
impl<T> IntoIterWrapper<T, IsIntoIterKind>
Source§impl<T> IntoIterWrapper<T, IsIteratorKind>
impl<T> IntoIterWrapper<T, IsIteratorKind>
pub const fn coerce(self) -> IntoIterWrapper<T, IsIteratorKind>
pub const fn const_into_iter(self) -> Twhere
T: ConstIntoIter<IntoIter = T>,
Auto Trait Implementations§
impl<I, K> Freeze for IntoIterWrapper<I, K>where
I: Freeze,
impl<I, K> RefUnwindSafe for IntoIterWrapper<I, K>where
I: RefUnwindSafe,
impl<I, K> Send for IntoIterWrapper<I, K>where
I: Send,
impl<I, K> Sync for IntoIterWrapper<I, K>where
I: Sync,
impl<I, K> Unpin for IntoIterWrapper<I, K>where
I: Unpin,
impl<I, K> UnwindSafe for IntoIterWrapper<I, K>where
I: UnwindSafe,
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