pub struct Iter;Expand description
Implementationsยง
Sourceยงimpl Iter
ยงCore methods.
impl Iter
ยงCore methods.
Sourcepub const fn empty<T>() -> Empty<T> โ
pub const fn empty<T>() -> Empty<T> โ
Creates an iterator that yields nothing.
See core::iter::empty.
Sourcepub fn from_coroutine<G>(coroutine: G) -> FromCoroutine<G> โ
Available on nightly_coro only.
pub fn from_coroutine<G>(coroutine: G) -> FromCoroutine<G> โ
nightly_coro only.Creates a new iterator where each iteration calls the provided coroutine.
See core::iter::from_coroutine.
Sourcepub fn from_fn<T, F>(f: F) -> FromFn<F> โ
pub fn from_fn<T, F>(f: F) -> FromFn<F> โ
Creates an iterator that calls the given closure F: FnMut() -> Option<T>.
See core::iter::from_fn.
Sourcepub fn once<T>(value: T) -> Once<T> โ
pub fn once<T>(value: T) -> Once<T> โ
Creates an iterator that yields an element exactly once.
See core::iter::once.
Sourcepub fn once_with<A, F>(make: F) -> OnceWith<F> โwhere
F: FnOnce() -> A,
pub fn once_with<A, F>(make: F) -> OnceWith<F> โwhere
F: FnOnce() -> A,
Creates an iterator that lazily generates a value exactly once.
See core::iter::once_with.
Sourcepub fn repeat<T>(elt: T) -> Repeat<T> โwhere
T: Clone,
pub fn repeat<T>(elt: T) -> Repeat<T> โwhere
T: Clone,
Creates an iterator that endlessly repeats a single element.
See core::iter::repeat.
Sourcepub fn repeat_n<T>(element: T, count: usize) -> RepeatN<T> โwhere
T: Clone,
pub fn repeat_n<T>(element: T, count: usize) -> RepeatN<T> โwhere
T: Clone,
Creates a new iterator that repeats a single element a given number of times.
See core::iter::repeat_n.
Sourcepub fn repeat_with<A, F>(repeater: F) -> RepeatWith<F> โwhere
F: FnMut() -> A,
pub fn repeat_with<A, F>(repeater: F) -> RepeatWith<F> โwhere
F: FnMut() -> A,
Creates an iterator that endlessly repeats calling F: FnMut() -> A.
See core::iter::repeat_with.
Sourcepub fn successors<T, F>(first: Option<T>, succ: F) -> Successors<T, F> โ
pub fn successors<T, F>(first: Option<T>, succ: F) -> Successors<T, F> โ
Creates an iterator where each successive item is computed based on the previous.
See core::iter::successors.
Sourcepub fn zip<A, B>(
a: A,
b: B,
) -> Zip<<A as IntoIterator>::IntoIter, <B as IntoIterator>::IntoIter> โwhere
A: IntoIterator,
B: IntoIterator,
pub fn zip<A, B>(
a: A,
b: B,
) -> Zip<<A as IntoIterator>::IntoIter, <B as IntoIterator>::IntoIter> โwhere
A: IntoIterator,
B: IntoIterator,
Converts the arguments to iterators and zips them.
See core::iter::zip.
Trait Implementationsยง
Auto Trait Implementationsยง
impl Freeze for Iter
impl RefUnwindSafe for Iter
impl Send for Iter
impl Sync for Iter
impl Unpin for Iter
impl UnsafeUnpin for Iter
impl UnwindSafe for Iter
Blanket Implementationsยง
Sourceยงimpl<T> AnyExt for T
impl<T> AnyExt for T
Sourceยงfn type_hash_with<H: Hasher>(&self, hasher: H) -> u64
fn type_hash_with<H: Hasher>(&self, hasher: H) -> u64
TypeId of Self using a custom hasher.Sourceยงfn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
fn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
Sourceยงfn as_any_box(self: Box<Self>) -> Box<dyn Any>where
Self: Sized,
fn as_any_box(self: Box<Self>) -> Box<dyn Any>where
Self: Sized,
alloc only.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
Sourceยงimpl<T> ByteSized for T
impl<T> ByteSized for T
Sourceยงconst BYTE_ALIGN: usize = _
const BYTE_ALIGN: usize = _
Sourceยงfn byte_align(&self) -> usize
fn byte_align(&self) -> usize
Sourceยงfn ptr_size_ratio(&self) -> [usize; 2]
fn ptr_size_ratio(&self) -> [usize; 2]
Sourceยงimpl<T> MemExt for Twhere
T: ?Sized,
impl<T> MemExt for Twhere
T: ?Sized,
Sourceยงconst NEEDS_DROP: bool = _
const NEEDS_DROP: bool = _
Sourceยงfn mem_align_of<T>() -> usize
fn mem_align_of<T>() -> usize
Sourceยงfn mem_align_of_val(&self) -> usize
fn mem_align_of_val(&self) -> usize
Sourceยงfn mem_size_of<T>() -> usize
fn mem_size_of<T>() -> usize
Sourceยงfn mem_size_of_val(&self) -> usize
fn mem_size_of_val(&self) -> usize
Sourceยงfn mem_needs_drop(&self) -> bool
fn mem_needs_drop(&self) -> bool
true if dropping values of this type matters. Read moreSourceยงfn mem_forget(self)where
Self: Sized,
fn mem_forget(self)where
Self: Sized,
self without running its destructor. Read moreSourceยงfn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
fn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
Sourceยงunsafe fn mem_zeroed<T>() -> T
unsafe fn mem_zeroed<T>() -> T
unsafe_layout only.T represented by the all-zero byte-pattern. Read moreSourceยงunsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst
unsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst
unsafe_layout only.T represented by the all-zero byte-pattern. Read moreSourceยงfn mem_as_bytes(&self) -> &[u8] โ
fn mem_as_bytes(&self) -> &[u8] โ
unsafe_slice only.