Struct Empty

struct Empty

Error: empty slice

This error is returned when Choose::new is given an empty slice.

Implementations

impl Clone for Empty

fn clone(self: &Self) -> Empty

impl Copy for Empty

impl Debug for Empty

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

impl Display for Empty

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

impl Error for Empty

impl Freeze for Empty

impl RefUnwindSafe for Empty

impl Send for Empty

impl Sync for Empty

impl Unpin for Empty

impl UnwindSafe for Empty

impl<T> Any for Empty

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Empty

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

impl<T> BorrowMut for Empty

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

impl<T> CloneToUninit for Empty

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

impl<T> From for Empty

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for Empty

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T> ToString for Empty

fn to_string(self: &Self) -> String

impl<T, U> Into for Empty

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

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

impl<T, U> TryInto for Empty

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

impl<V, T> VZip for Empty

fn vzip(self: Self) -> V