Struct Empty

struct Empty<T>(_)

An iterator that yields nothing.

This struct is created by the [empty()] function. See its documentation for more.

Implementations

impl<I> IntoIterator for Empty<T>

fn into_iter(self: Self) -> I

impl<T> Any for Empty<T>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Empty<T>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Empty<T>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> Clone for Empty<T>

fn clone(self: &Self) -> Empty<T>

impl<T> CloneToUninit for Empty<T>

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> Debug for Empty<T>

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl<T> Default for Empty<T>

fn default() -> Empty<T>

impl<T> DoubleEndedIterator for Empty<T>

fn next_back(self: &mut Self) -> Option<T>

impl<T> ExactSizeIterator for Empty<T>

fn len(self: &Self) -> usize

impl<T> Freeze for Empty<T>

impl<T> From for Empty<T>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FusedIterator for Empty<T>

impl<T> Iterator for Empty<T>

fn next(self: &mut Self) -> Option<T>
fn size_hint(self: &Self) -> (usize, Option<usize>)

impl<T> RefUnwindSafe for Empty<T>

impl<T> Send for Empty<T>

impl<T> Sync for Empty<T>

impl<T> TrustedLen for Empty<T>

impl<T> Unpin for Empty<T>

impl<T> UnsafeUnpin for Empty<T>

impl<T> UnwindSafe for Empty<T>

impl<T, U> Into for Empty<T>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Empty<T>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Empty<T>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>