Struct NonEmpty

Source
pub struct NonEmpty<T>
where T: ?Sized,
{ /* private fields */ }

Implementations§

Source§

impl<T, const N: usize> NonEmpty<ArrayVec<T, N>>
where [T; N]: Array1,

Source

pub unsafe fn from_array_vec_unchecked(items: ArrayVec<T, N>) -> Self

Available on crate feature arrayvec only.
§Safety

items must be non-empty. For example, it is unsound to call this function with the immediate output of ArrayVec::new().

Source

pub fn from_one(item: T) -> Self

Available on crate feature arrayvec only.
Source

pub fn from_head_and_tail<I>(head: T, tail: I) -> Self
where I: IntoIterator<Item = T>,

Available on crate feature arrayvec only.
Source

pub fn from_tail_and_head<I>(tail: I, head: T) -> Self
where I: IntoIterator<Item = T>,

Available on crate feature arrayvec only.
Source

pub fn into_head_and_tail(self) -> (T, ArrayVec<T, N>)

Available on crate feature arrayvec only.
Source

pub fn into_tail_and_head(self) -> (ArrayVec<T, N>, T)

Available on crate feature arrayvec only.
Source

pub fn into_array_vec(self) -> ArrayVec<T, N>

Available on crate feature arrayvec only.
Source

pub fn try_into_array(self) -> Result<[T; N], Self>

Available on crate feature arrayvec only.
Source

pub unsafe fn into_array_unchecked(self) -> [T; N]

Available on crate feature arrayvec only.
§Safety

The ArrayVec1 must be saturated (length equals capacity), otherwise the output is uninitialized and unsound.

Source

pub fn try_extend_from_slice( &mut self, items: &[T], ) -> Result<(), CapacityError>
where T: Copy,

Available on crate feature arrayvec only.
Source

pub fn push(&mut self, item: T)

Available on crate feature arrayvec only.
Source

pub fn try_push(&mut self, item: T) -> Result<(), CapacityError<T>>

Available on crate feature arrayvec only.
Source

pub unsafe fn push_unchecked(&mut self, item: T)

Available on crate feature arrayvec only.
§Safety

The ArrayVec1 must have vacancy (available capacity) for the given item. Calling this function against a saturated ArrayVec1 is undefined behavior.

Source

pub fn pop_or(&mut self) -> PopOr<'_, Self, N>

Available on crate feature arrayvec only.
Source

pub fn swap_pop_or(&mut self, index: usize) -> SwapPopOr<'_, Self, N>

Available on crate feature arrayvec only.
Source

pub fn insert(&mut self, index: usize, item: T)

Available on crate feature arrayvec only.
Source

pub fn try_insert( &mut self, index: usize, item: T, ) -> Result<(), CapacityError<T>>

Available on crate feature arrayvec only.
Source

pub fn remove_or(&mut self, index: usize) -> RemoveOr<'_, Self, N>

Available on crate feature arrayvec only.
Source

pub fn swap_remove_or(&mut self, index: usize) -> RemoveOr<'_, Self, N>

Available on crate feature arrayvec only.
Source

pub const fn len(&self) -> NonZeroUsize

Available on crate feature arrayvec only.
Source

pub const fn capacity(&self) -> NonZeroUsize

Available on crate feature arrayvec only.
Source

pub const fn as_array_vec(&self) -> &ArrayVec<T, N>

Available on crate feature arrayvec only.
Source

pub fn as_slice1(&self) -> &Slice1<T>

Available on crate feature arrayvec only.
Source

pub fn as_mut_slice1(&mut self) -> &mut Slice1<T>

Available on crate feature arrayvec only.
Source

pub fn as_ptr(&self) -> *const T

Available on crate feature arrayvec only.
Source

pub fn as_mut_ptr(&mut self) -> *mut T

Available on crate feature arrayvec only.
Source§

impl<K, V> NonEmpty<BTreeMap<K, V>>

Source

pub unsafe fn from_btree_map_unchecked(items: BTreeMap<K, V>) -> Self

Available on crate feature alloc only.
§Safety

items must be non-empty. For example, it is unsound to call this function with the immediate output of BTreeMap::new().

Source

pub fn from_one(item: (K, V)) -> Self
where K: Ord,

Available on crate feature alloc only.
Source

pub fn from_head_and_tail<I>(head: (K, V), tail: I) -> Self
where K: Ord, I: IntoIterator<Item = (K, V)>,

Available on crate feature alloc only.
Source

pub fn from_tail_and_head<I>(tail: I, head: (K, V)) -> Self
where K: Ord, I: IntoIterator<Item = (K, V)>,

Available on crate feature alloc only.
Source

pub fn into_btree_map(self) -> BTreeMap<K, V>

Available on crate feature alloc only.
Source

pub fn into_keys1(self) -> Iterator1<IntoKeys<K, V>>

Available on crate feature alloc only.
Source

pub fn into_values1(self) -> Iterator1<IntoValues<K, V>>

Available on crate feature alloc only.
Source

pub fn split_off_tail(&mut self) -> BTreeMap<K, V>
where K: Clone + UnsafeOrd,

Available on crate feature alloc only.
Source

pub fn append(&mut self, items: &mut BTreeMap<K, V>)
where K: Ord,

Available on crate feature alloc only.
Source

pub fn entry(&mut self, key: K) -> Entry<'_, K, V>
where K: Ord,

Available on crate feature alloc only.
Source

pub fn insert(&mut self, key: K, value: V) -> Option<V>
where K: Ord,

Available on crate feature alloc only.
Source

pub fn pop_first_or(&mut self) -> PopOr<'_, Self>
where K: Ord,

Available on crate feature alloc only.
Source

pub fn pop_first_until_only(&mut self) -> OnlyEntry<'_, K, V>
where K: Ord,

Available on crate feature alloc only.
Source

pub fn pop_first_until_only_with<F>(&mut self, f: F) -> OnlyEntry<'_, K, V>
where K: Ord, F: FnMut((K, V)),

Available on crate feature alloc only.
Source

pub fn pop_last_or(&mut self) -> PopOr<'_, Self>
where K: Ord,

Available on crate feature alloc only.
Source

pub fn pop_last_until_only(&mut self) -> OnlyEntry<'_, K, V>
where K: Ord,

Available on crate feature alloc only.
Source

pub fn pop_last_until_only_with<F>(&mut self, f: F) -> OnlyEntry<'_, K, V>
where K: Ord, F: FnMut((K, V)),

Available on crate feature alloc only.
Source

pub fn remove_or<'a, 'q, Q>( &'a mut self, query: &'q Q, ) -> RemoveOr<'a, 'q, Self, Q>
where K: Borrow<Q> + Ord, Q: Ord + ?Sized,

Available on crate feature alloc only.
Source

pub fn remove_entry_or<'a, 'q, Q>( &'a mut self, query: &'q Q, ) -> RemoveEntryOr<'a, 'q, Self, Q>
where K: Borrow<Q> + Ord, Q: Ord + ?Sized,

Available on crate feature alloc only.
Source

pub fn get<Q>(&self, query: &Q) -> Option<&V>
where K: Borrow<Q> + Ord, Q: Ord + ?Sized,

Available on crate feature alloc only.
Source

pub fn get_key_value<Q>(&self, query: &Q) -> Option<(&K, &V)>
where K: Borrow<Q> + Ord, Q: Ord + ?Sized,

Available on crate feature alloc only.
Source

pub fn get_mut<Q>(&mut self, query: &Q) -> Option<&mut V>
where K: Borrow<Q> + Ord, Q: Ord + ?Sized,

Available on crate feature alloc only.
Source

pub fn len(&self) -> NonZeroUsize

Available on crate feature alloc only.
Source

pub fn first_key_value(&self) -> (&K, &V)
where K: Ord,

Available on crate feature alloc only.
Source

pub fn first_entry(&mut self) -> OccupiedEntry<'_, K, V>
where K: Ord,

Available on crate feature alloc only.
Source

pub fn last_key_value(&self) -> (&K, &V)
where K: Ord,

Available on crate feature alloc only.
Source

pub fn last_entry(&mut self) -> OccupiedEntry<'_, K, V>
where K: Ord,

Available on crate feature alloc only.
Source

pub fn iter1(&self) -> Iterator1<Iter<'_, K, V>>

Available on crate feature alloc only.
Source

pub fn iter1_mut(&mut self) -> Iterator1<IterMut<'_, K, V>>

Available on crate feature alloc only.
Source

pub fn keys1(&self) -> Iterator1<Keys<'_, K, V>>

Available on crate feature alloc only.
Source

pub fn values1(&self) -> Iterator1<Values<'_, K, V>>

Available on crate feature alloc only.
Source

pub fn values1_mut(&mut self) -> Iterator1<ValuesMut<'_, K, V>>

Available on crate feature alloc only.
Source

pub fn contains_key<Q>(&self, query: &Q) -> bool
where K: Borrow<Q> + Ord, Q: Ord + ?Sized,

Available on crate feature alloc only.
Source

pub const fn as_btree_map(&self) -> &BTreeMap<K, V>

Available on crate feature alloc only.
Source§

impl<K, V> NonEmpty<BTreeMap<K, V>>
where K: Ord,

Source

pub fn par_iter1( &self, ) -> ParallelIterator1<<&BTreeMap<K, V> as IntoParallelIterator>::Iter>
where K: Sync, V: Sync,

Available on crate features alloc and rayon only.
Source

pub fn par_iter1_mut( &mut self, ) -> ParallelIterator1<<&mut BTreeMap<K, V> as IntoParallelIterator>::Iter>
where K: Sync, V: Send,

Available on crate features alloc and rayon only.
Source§

impl<T> NonEmpty<BTreeSet<T>>

Source

pub unsafe fn from_btree_set_unchecked(items: BTreeSet<T>) -> Self

Available on crate feature alloc only.
§Safety

items must be non-empty. For example, it is unsound to call this function with the immediate output of BTreeSet::new().

Source

pub fn from_one(item: T) -> Self
where T: Ord,

Available on crate feature alloc only.
Source

pub fn from_head_and_tail<I>(head: T, tail: I) -> Self
where T: Ord, I: IntoIterator<Item = T>,

Available on crate feature alloc only.
Source

pub fn from_tail_and_head<I>(tail: I, head: T) -> Self
where T: Ord, I: IntoIterator<Item = T>,

Available on crate feature alloc only.
Source

pub fn into_btree_set(self) -> BTreeSet<T>

Available on crate feature alloc only.
Source

pub fn split_off_tail(&mut self) -> BTreeSet<T>
where T: Clone + UnsafeOrd,

Available on crate feature alloc only.
Source

pub fn append(&mut self, items: &mut BTreeSet<T>)
where T: Ord,

Available on crate feature alloc only.
Source

pub fn insert(&mut self, item: T) -> bool
where T: Ord,

Available on crate feature alloc only.
Source

pub fn replace(&mut self, item: T) -> Option<T>
where T: Ord,

Available on crate feature alloc only.
Source

pub fn pop_first_or(&mut self) -> PopOr<'_, Self>
where T: Ord,

Available on crate feature alloc only.
Source

pub fn pop_first_until_only(&mut self) -> &T
where T: Ord,

Available on crate feature alloc only.
Source

pub fn pop_first_until_only_with<F>(&mut self, f: F) -> &T
where T: Ord, F: FnMut(T),

Available on crate feature alloc only.
Source

pub fn pop_last_or(&mut self) -> PopOr<'_, Self>
where T: Ord,

Available on crate feature alloc only.
Source

pub fn pop_last_until_only(&mut self) -> &T
where T: Ord,

Available on crate feature alloc only.
Source

pub fn pop_last_until_only_with<F>(&mut self, f: F) -> &T
where T: Ord, F: FnMut(T),

Available on crate feature alloc only.
Source

pub fn remove_or<'a, 'q, Q>( &'a mut self, query: &'q Q, ) -> DropRemoveOr<'a, 'q, Self, Q>
where T: Borrow<Q> + Ord, Q: Ord + ?Sized,

Available on crate feature alloc only.
Source

pub fn take_or<'a, 'q, Q>( &'a mut self, query: &'q Q, ) -> TakeRemoveOr<'a, 'q, Self, Q>
where T: Borrow<Q> + Ord, Q: Ord + ?Sized,

Available on crate feature alloc only.
Source

pub fn get<Q>(&self, query: &Q) -> Option<&T>
where T: Borrow<Q> + Ord, Q: Ord + ?Sized,

Available on crate feature alloc only.
Source

pub fn len(&self) -> NonZeroUsize

Available on crate feature alloc only.
Source

pub fn first(&self) -> &T
where T: Ord,

Available on crate feature alloc only.
Source

pub fn last(&self) -> &T
where T: Ord,

Available on crate feature alloc only.
Source

pub fn range<Q, R>(&self, range: R) -> Range<'_, T>
where T: Borrow<Q> + Ord, Q: Ord + ?Sized, R: RangeBounds<Q>,

Available on crate feature alloc only.
Source

pub fn difference<'a, R>(&'a self, other: &'a R) -> Difference<'a, T>
where T: Ord, R: ClosedBTreeSet<Item = T>,

Available on crate feature alloc only.
Source

pub fn symmetric_difference<'a, R>( &'a self, other: &'a R, ) -> SymmetricDifference<'a, T>
where T: Ord, R: ClosedBTreeSet<Item = T>,

Available on crate feature alloc only.
Source

pub fn intersection<'a, R>(&'a self, other: &'a R) -> Intersection<'a, T>
where T: Ord, R: ClosedBTreeSet<Item = T>,

Available on crate feature alloc only.
Source

pub fn union<'a, R>(&'a self, other: &'a R) -> Iterator1<Union<'a, T>>
where T: Ord, R: ClosedBTreeSet<Item = T>,

Available on crate feature alloc only.
Source

pub fn iter1(&self) -> Iterator1<Iter<'_, T>>

Available on crate feature alloc only.
Source

pub fn is_disjoint<R>(&self, other: &R) -> bool
where T: Ord, R: ClosedBTreeSet<Item = T>,

Available on crate feature alloc only.
Source

pub fn is_subset<R>(&self, other: &R) -> bool
where T: Ord, R: ClosedBTreeSet<Item = T>,

Available on crate feature alloc only.
Source

pub fn is_superset<R>(&self, other: &R) -> bool
where T: Ord, R: ClosedBTreeSet<Item = T>,

Available on crate feature alloc only.
Source

pub fn contains<Q>(&self, item: &Q) -> bool
where T: Borrow<Q> + Ord, Q: Ord + ?Sized,

Available on crate feature alloc only.
Source

pub const fn as_btree_set(&self) -> &BTreeSet<T>

Available on crate feature alloc only.
Source§

impl<T> NonEmpty<BTreeSet<T>>
where T: Ord,

Source

pub fn par_iter1( &self, ) -> ParallelIterator1<<&BTreeSet<T> as IntoParallelIterator>::Iter>
where T: Sync,

Available on crate features alloc and rayon only.
Source§

impl<K, V> NonEmpty<Slice<K, V>>

Source

pub const unsafe fn from_slice_unchecked(items: &Slice<K, V>) -> &Self

Available on crate feature indexmap only.
§Safety

items must be non-empty. For example, it is undefined behavior to call this function with an empty slice Slice::new().

Source

pub const unsafe fn from_mut_slice_unchecked( items: &mut Slice<K, V>, ) -> &mut Self

Available on crate feature indexmap only.
§Safety

items must be non-empty. For example, it is undefined behavior to call this function with an empty slice Slice::new().

Source

pub fn split_first(&self) -> ((&K, &V), &Slice<K, V>)

Available on crate feature indexmap only.
Source

pub fn split_last(&self) -> ((&K, &V), &Slice<K, V>)

Available on crate feature indexmap only.
Source

pub fn first(&self) -> (&K, &V)

Available on crate feature indexmap only.
Source

pub fn last(&self) -> (&K, &V)

Available on crate feature indexmap only.
Source

pub fn iter1(&self) -> Iterator1<Iter<'_, K, V>>

Available on crate feature indexmap only.
Source

pub const fn len(&self) -> NonZeroUsize

Available on crate feature indexmap only.
Source§

impl<K, V, S> NonEmpty<IndexMap<K, V, S>>

Source

pub unsafe fn from_index_map_unchecked(items: IndexMap<K, V, S>) -> Self

Available on crate feature indexmap only.
§Safety

items must be non-empty. For example, it is unsound to call this function with the immediate output of IndexMap::new().

Source

pub fn into_index_map(self) -> IndexMap<K, V, S>

Available on crate feature indexmap only.
Source

pub fn into_boxed_slice1(self) -> Box<Slice1<K, V>>

Available on crate feature indexmap only.
Source

pub fn into_keys1(self) -> Iterator1<IntoKeys<K, V>>

Available on crate feature indexmap only.
Source

pub fn into_values1(self) -> Iterator1<IntoValues<K, V>>

Available on crate feature indexmap only.
Source

pub fn sorted_by<F>(self, f: F) -> Iterator1<IntoIter<K, V>>
where F: FnMut(&K, &V, &K, &V) -> Ordering,

Available on crate feature indexmap only.
Source

pub fn sorted_unstable_by<F>(self, f: F) -> Iterator1<IntoIter<K, V>>
where F: FnMut(&K, &V, &K, &V) -> Ordering,

Available on crate feature indexmap only.
Source

pub fn split_off_tail(&mut self) -> IndexMap<K, V, S>
where S: Clone,

Available on crate feature indexmap only.
Source

pub fn reverse(&mut self)

Available on crate feature indexmap only.
Source

pub fn sort_keys(&mut self)
where K: Ord,

Available on crate feature indexmap only.
Source

pub fn sort_unstable_keys(&mut self)
where K: Ord,

Available on crate feature indexmap only.
Source

pub fn sort_by<F>(&mut self, f: F)
where F: FnMut(&K, &V, &K, &V) -> Ordering,

Available on crate feature indexmap only.
Source

pub fn sort_unstable_by<F>(&mut self, f: F)
where F: FnMut(&K, &V, &K, &V) -> Ordering,

Available on crate feature indexmap only.
Source

pub fn sort_by_cached_key<T, F>(&mut self, f: F)
where T: Ord, F: FnMut(&K, &V) -> T,

Available on crate feature indexmap only.
Source

pub fn move_index(&mut self, from: usize, to: usize)

Available on crate feature indexmap only.
Source

pub fn swap_indices(&mut self, a: usize, b: usize)

Available on crate feature indexmap only.
Source

pub fn get_index(&self, index: usize) -> Option<(&K, &V)>

Available on crate feature indexmap only.
Source

pub fn get_index_mut(&mut self, index: usize) -> Option<(&K, &mut V)>

Available on crate feature indexmap only.
Source

pub fn get_index_entry( &mut self, index: usize, ) -> Option<IndexedEntry<'_, K, V>>

Available on crate feature indexmap only.
Source

pub fn get_range<R>(&self, range: R) -> Option<&Slice<K, V>>
where R: RangeBounds<usize>,

Available on crate feature indexmap only.
Source

pub fn get_range_mut<R>(&mut self, range: R) -> Option<&mut Slice<K, V>>
where R: RangeBounds<usize>,

Available on crate feature indexmap only.
Source

pub fn binary_search_keys(&self, key: &K) -> Result<usize, usize>
where K: Ord,

Available on crate feature indexmap only.
Source

pub fn binary_search_by<'a, F>(&'a self, f: F) -> Result<usize, usize>
where F: FnMut(&'a K, &'a V) -> Ordering,

Available on crate feature indexmap only.
Source

pub fn binary_search_by_key<'a, Q, F>( &'a self, query: &Q, f: F, ) -> Result<usize, usize>
where Q: Ord, F: FnMut(&'a K, &'a V) -> Q,

Available on crate feature indexmap only.
Source

pub fn partition_point<F>(&self, f: F) -> usize
where F: FnMut(&K, &V) -> bool,

Available on crate feature indexmap only.
Source

pub fn iter1(&self) -> Iterator1<Iter<'_, K, V>>

Available on crate feature indexmap only.
Source

pub fn iter1_mut(&mut self) -> Iterator1<IterMut<'_, K, V>>

Available on crate feature indexmap only.
Source

pub fn keys1(&self) -> Iterator1<Keys<'_, K, V>>

Available on crate feature indexmap only.
Source

pub fn values1(&self) -> Iterator1<Values<'_, K, V>>

Available on crate feature indexmap only.
Source

pub fn values1_mut(&mut self) -> Iterator1<ValuesMut<'_, K, V>>

Available on crate feature indexmap only.
Source

pub fn len(&self) -> NonZeroUsize

Available on crate feature indexmap only.
Source

pub fn capacity(&self) -> NonZeroUsize

Available on crate feature indexmap only.
Source

pub fn hasher(&self) -> &S

Available on crate feature indexmap only.
Source

pub const fn as_index_map(&self) -> &IndexMap<K, V, S>

Available on crate feature indexmap only.
Source

pub fn as_slice1(&self) -> &Slice1<K, V>

Available on crate feature indexmap only.
Source

pub fn as_mut_slice1(&mut self) -> &mut Slice1<K, V>

Available on crate feature indexmap only.
Source§

impl<K, V, S> NonEmpty<IndexMap<K, V, S>>
where S: BuildHasher,

Source

pub fn pop_or(&mut self) -> PopOr<'_, Self>

Available on crate feature indexmap only.
Source

pub fn shift_remove_or<'a, 'q, Q>( &'a mut self, query: &'q Q, ) -> RemoveOr<'a, 'q, Self, Q>
where Q: Equivalent<K> + Hash + ?Sized,

Available on crate feature indexmap only.
Source

pub fn swap_remove_or<'a, 'q, Q>( &'a mut self, query: &'q Q, ) -> RemoveOr<'a, 'q, Self, Q>
where Q: Equivalent<K> + Hash + ?Sized,

Available on crate feature indexmap only.
Source

pub fn shift_remove_entry_or<'a, 'q, Q>( &'a mut self, query: &'q Q, ) -> RemoveEntryOr<'a, 'q, Self, Q>
where Q: Equivalent<K> + Hash + ?Sized,

Available on crate feature indexmap only.
Source

pub fn swap_remove_entry_or<'a, 'q, Q>( &'a mut self, query: &'q Q, ) -> RemoveEntryOr<'a, 'q, Self, Q>
where Q: Equivalent<K> + Hash + ?Sized,

Available on crate feature indexmap only.
Source

pub fn get<Q>(&self, query: &Q) -> Option<&V>
where Q: Equivalent<K> + Hash + ?Sized,

Available on crate feature indexmap only.
Source

pub fn get_mut<Q>(&mut self, query: &Q) -> Option<&mut V>
where Q: Equivalent<K> + Hash + ?Sized,

Available on crate feature indexmap only.
Source

pub fn get_key_value<Q>(&self, query: &Q) -> Option<(&K, &V)>
where Q: Equivalent<K> + Hash + ?Sized,

Available on crate feature indexmap only.
Source

pub fn get_full<Q>(&self, query: &Q) -> Option<(usize, &K, &V)>
where Q: Equivalent<K> + Hash + ?Sized,

Available on crate feature indexmap only.
Source

pub fn get_full_mut<Q>(&mut self, query: &Q) -> Option<(usize, &K, &mut V)>
where Q: Equivalent<K> + Hash + ?Sized,

Available on crate feature indexmap only.
Source

pub fn get_index_of<Q>(&self, query: &Q) -> Option<usize>
where Q: Equivalent<K> + Hash + ?Sized,

Available on crate feature indexmap only.
Source

pub fn first(&self) -> (&K, &V)

Available on crate feature indexmap only.
Source

pub fn first_mut(&mut self) -> (&K, &mut V)

Available on crate feature indexmap only.
Source

pub fn first_entry(&mut self) -> IndexedEntry<'_, K, V>

Available on crate feature indexmap only.
Source

pub fn last(&self) -> (&K, &V)

Available on crate feature indexmap only.
Source

pub fn last_mut(&mut self) -> (&K, &mut V)

Available on crate feature indexmap only.
Source

pub fn last_entry(&mut self) -> IndexedEntry<'_, K, V>

Available on crate feature indexmap only.
Source

pub fn contains_key<Q>(&self, query: &Q) -> bool
where Q: Equivalent<K> + Hash + ?Sized,

Available on crate feature indexmap only.
Source§

impl<K, V, S> NonEmpty<IndexMap<K, V, S>>
where K: Eq + Hash, S: BuildHasher,

Source

pub fn from_one(item: (K, V)) -> Self
where S: Default,

Available on crate feature indexmap only.
Source

pub fn from_one_with_hasher(item: (K, V), hasher: S) -> Self

Available on crate feature indexmap only.
Source

pub fn from_iter1_with_hasher<I>(items: I, hasher: S) -> Self
where I: IntoIterator1<Item = (K, V)>,

Available on crate feature indexmap only.
Source

pub fn from_head_and_tail<I>(head: (K, V), tail: I) -> Self
where S: Default, I: IntoIterator<Item = (K, V)>,

Available on crate feature indexmap only.
Source

pub fn from_tail_and_head<I>(tail: I, head: (K, V)) -> Self
where S: Default, I: IntoIterator<Item = (K, V)>,

Available on crate feature indexmap only.
Source

pub fn append<SR>(&mut self, items: &mut IndexMap<K, V, SR>)

Available on crate feature indexmap only.
Source

pub fn entry(&mut self, key: K) -> Entry<'_, K, V>

Available on crate feature indexmap only.
Source

pub fn insert(&mut self, key: K, value: V) -> Option<V>

Available on crate feature indexmap only.
Source

pub fn insert_full(&mut self, key: K, value: V) -> (usize, Option<V>)

Available on crate feature indexmap only.
Source

pub fn insert_sorted(&mut self, key: K, value: V) -> (usize, Option<V>)
where K: Ord,

Available on crate feature indexmap only.
Source

pub fn insert_before( &mut self, index: usize, key: K, value: V, ) -> (usize, Option<V>)

Available on crate feature indexmap only.
Source

pub fn shift_insert(&mut self, index: usize, key: K, value: V) -> Option<V>

Available on crate feature indexmap only.
Source§

impl<K, V, S> NonEmpty<IndexMap<K, V, S>>

Source

pub fn par_sorted_by<F>(self, f: F) -> ParallelIterator1<IntoParIter<K, V>>
where K: Send, V: Send, F: Fn(&K, &V, &K, &V) -> Ordering + Sync,

Available on crate features indexmap and rayon only.
Source

pub fn par_sorted_unstable_by<F>( self, f: F, ) -> ParallelIterator1<IntoParIter<K, V>>
where K: Send, V: Send, F: Fn(&K, &V, &K, &V) -> Ordering + Sync,

Available on crate features indexmap and rayon only.
Source

pub fn par_sort_keys(&mut self)
where K: Ord + Send, V: Send,

Available on crate features indexmap and rayon only.
Source

pub fn par_sort_unstable_keys(&mut self)
where K: Ord + Send, V: Send,

Available on crate features indexmap and rayon only.
Source

pub fn par_sort_by<F>(&mut self, f: F)
where K: Send, V: Send, F: Fn(&K, &V, &K, &V) -> Ordering + Sync,

Available on crate features indexmap and rayon only.
Source

pub fn par_sort_unstable_by<F>(&mut self, f: F)
where K: Send, V: Send, F: Fn(&K, &V, &K, &V) -> Ordering + Sync,

Available on crate features indexmap and rayon only.
Source

pub fn par_sort_by_cached_key<T, F>(&mut self, f: F)
where K: Send, V: Send, T: Ord + Send, F: Fn(&K, &V) -> T + Sync,

Available on crate features indexmap and rayon only.
Source

pub fn par_iter1( &self, ) -> ParallelIterator1<<&IndexMap<K, V> as IntoParallelIterator>::Iter>
where K: Sync, V: Sync,

Available on crate features indexmap and rayon only.
Source

pub fn par_iter1_mut( &mut self, ) -> ParallelIterator1<<&mut IndexMap<K, V> as IntoParallelIterator>::Iter>
where K: Send + Sync, V: Send,

Available on crate features indexmap and rayon only.
Source

pub fn par_keys1(&self) -> ParallelIterator1<ParKeys<'_, K, V>>
where K: Sync, V: Sync,

Available on crate features indexmap and rayon only.
Source

pub fn par_values1(&self) -> ParallelIterator1<ParValues<'_, K, V>>
where K: Sync, V: Sync,

Available on crate features indexmap and rayon only.
Source

pub fn par_values1_mut(&mut self) -> ParallelIterator1<ParValuesMut<'_, K, V>>
where K: Send, V: Send,

Available on crate features indexmap and rayon only.
Source

pub fn par_eq<R>(&self, other: &R) -> bool
where K: Eq + Hash + Sync, V: PartialEq<R::Value> + Sync, S: BuildHasher, R: ClosedIndexMap<Key = K>, R::Value: Sync, R::State: BuildHasher + Sync,

Available on crate features indexmap and rayon only.
Source§

impl<T> NonEmpty<Slice<T>>

Source

pub const unsafe fn from_slice_unchecked(items: &Slice<T>) -> &Self

Available on crate feature indexmap only.
§Safety

items must be non-empty. For example, it is undefined behavior to call this function with an empty slice Slice::new().

Source

pub fn split_first(&self) -> (&T, &Slice<T>)

Available on crate feature indexmap only.
Source

pub fn split_last(&self) -> (&T, &Slice<T>)

Available on crate feature indexmap only.
Source

pub fn first(&self) -> &T

Available on crate feature indexmap only.
Source

pub fn last(&self) -> &T

Available on crate feature indexmap only.
Source

pub fn iter1(&self) -> Iterator1<Iter<'_, T>>

Available on crate feature indexmap only.
Source

pub const fn len(&self) -> NonZeroUsize

Available on crate feature indexmap only.
Source§

impl<T, S> NonEmpty<IndexSet<T, S>>

Source

pub unsafe fn from_index_set_unchecked(items: IndexSet<T, S>) -> Self

Available on crate feature indexmap only.
§Safety

items must be non-empty. For example, it is unsound to call this function with the immediate output of IndexSet::new().

Source

pub fn into_index_set(self) -> IndexSet<T, S>

Available on crate feature indexmap only.
Source

pub fn into_boxed_slice1(self) -> Box<Slice1<T>>

Available on crate feature indexmap only.
Source

pub fn reserve(&mut self, additional: usize)

Available on crate feature indexmap only.
Source

pub fn try_reserve(&mut self, additional: usize) -> Result<(), TryReserveError>

Available on crate feature indexmap only.
Source

pub fn reserve_exact(&mut self, additional: usize)

Available on crate feature indexmap only.
Source

pub fn try_reserve_exact( &mut self, additional: usize, ) -> Result<(), TryReserveError>

Available on crate feature indexmap only.
Source

pub fn shrink_to(&mut self, capacity: usize)

Available on crate feature indexmap only.
Source

pub fn shrink_to_fit(&mut self)

Available on crate feature indexmap only.
Source

pub fn sort(&mut self)
where T: Ord,

Available on crate feature indexmap only.
Source

pub fn sort_by<F>(&mut self, f: F)
where F: FnMut(&T, &T) -> Ordering,

Available on crate feature indexmap only.
Source

pub fn sorted_by<F>(self, f: F) -> Iterator1<IntoIter<T>>
where F: FnMut(&T, &T) -> Ordering,

Available on crate feature indexmap only.
Source

pub fn sort_unstable(&mut self)
where T: Ord,

Available on crate feature indexmap only.
Source

pub fn sort_unstable_by<F>(&mut self, f: F)
where F: FnMut(&T, &T) -> Ordering,

Available on crate feature indexmap only.
Source

pub fn sorted_unstable_by<F>(self, f: F) -> Iterator1<IntoIter<T>>
where F: FnMut(&T, &T) -> Ordering,

Available on crate feature indexmap only.
Source

pub fn sort_by_cached_key<K, F>(&mut self, f: F)
where K: Ord, F: FnMut(&T) -> K,

Available on crate feature indexmap only.
Source

pub fn reverse(&mut self)

Available on crate feature indexmap only.
Source

pub fn split_off_tail(&mut self) -> IndexSet<T, S>
where S: Clone,

Available on crate feature indexmap only.
Source

pub fn move_index(&mut self, from: usize, to: usize)

Available on crate feature indexmap only.
Source

pub fn swap_indices(&mut self, a: usize, b: usize)

Available on crate feature indexmap only.
Source

pub fn pop_or(&mut self) -> PopOr<'_, Self>
where T: Eq + Hash,

Available on crate feature indexmap only.
Source

pub fn shift_remove_index_or(&mut self, index: usize) -> TakeRemoveOr<'_, Self>

Available on crate feature indexmap only.
Source

pub fn swap_remove_index_or(&mut self, index: usize) -> TakeRemoveOr<'_, Self>

Available on crate feature indexmap only.
Source

pub fn get_index(&self, index: usize) -> Option<&T>

Available on crate feature indexmap only.
Source

pub fn get_range<R>(&self, range: R) -> Option<&Slice<T>>
where R: RangeBounds<usize>,

Available on crate feature indexmap only.
Available on crate feature indexmap only.
Source

pub fn binary_search_by<'a, F>(&'a self, f: F) -> Result<usize, usize>
where F: FnMut(&'a T) -> Ordering,

Available on crate feature indexmap only.
Source

pub fn binary_search_by_key<'a, K, F>( &'a self, key: &K, f: F, ) -> Result<usize, usize>
where K: Ord, F: FnMut(&'a T) -> K,

Available on crate feature indexmap only.
Source

pub fn partition_point<F>(&self, f: F) -> usize
where F: FnMut(&T) -> bool,

Available on crate feature indexmap only.
Source

pub fn first(&self) -> &T

Available on crate feature indexmap only.
Source

pub fn last(&self) -> &T

Available on crate feature indexmap only.
Source

pub fn len(&self) -> NonZeroUsize

Available on crate feature indexmap only.
Source

pub fn capacity(&self) -> NonZeroUsize

Available on crate feature indexmap only.
Source

pub fn iter1(&self) -> Iterator1<Iter<'_, T>>

Available on crate feature indexmap only.
Source

pub fn hasher(&self) -> &S

Available on crate feature indexmap only.
Source

pub const fn as_index_set(&self) -> &IndexSet<T, S>

Available on crate feature indexmap only.
Source

pub fn as_slice1(&self) -> &Slice1<T>

Available on crate feature indexmap only.
Source§

impl<T, S> NonEmpty<IndexSet<T, S>>
where S: BuildHasher,

Source

pub fn get<Q>(&self, query: &Q) -> Option<&T>
where T: Borrow<Q>, Q: Equivalent<T> + Hash + ?Sized,

Available on crate feature indexmap only.
Source

pub fn shift_remove_or<'a, 'q, Q>( &'a mut self, query: &'q Q, ) -> DropRemoveOr<'a, 'q, Self, Q>
where T: Borrow<Q>, Q: Equivalent<T> + Hash + ?Sized,

Available on crate feature indexmap only.
Source

pub fn swap_remove_or<'a, 'q, Q>( &'a mut self, query: &'q Q, ) -> DropRemoveOr<'a, 'q, Self, Q>
where T: Borrow<Q>, Q: Equivalent<T> + Hash + ?Sized,

Available on crate feature indexmap only.
Source

pub fn shift_remove_full_or<'a, 'q, Q>( &'a mut self, query: &'q Q, ) -> TakeRemoveFullOr<'a, 'q, Self, Q>
where T: Borrow<Q>, Q: Equivalent<T> + Hash + ?Sized,

Available on crate feature indexmap only.
Source

pub fn swap_remove_full_or<'a, 'q, Q>( &'a mut self, query: &'q Q, ) -> TakeRemoveFullOr<'a, 'q, Self, Q>
where T: Borrow<Q>, Q: Equivalent<T> + Hash + ?Sized,

Available on crate feature indexmap only.
Source

pub fn shift_take_or<'a, 'q, Q>( &'a mut self, query: &'q Q, ) -> TakeRemoveOr<'a, Self, &'q Q>
where T: Borrow<Q>, Q: Equivalent<T> + Hash + ?Sized,

Available on crate feature indexmap only.
Source

pub fn swap_take_or<'a, 'q, Q>( &'a mut self, query: &'q Q, ) -> TakeRemoveOr<'a, Self, &'q Q>
where T: Borrow<Q>, Q: Equivalent<T> + Hash + ?Sized,

Available on crate feature indexmap only.
Source

pub fn contains<Q>(&self, item: &Q) -> bool
where T: Borrow<Q>, Q: Equivalent<T> + Hash + ?Sized,

Available on crate feature indexmap only.
Source§

impl<T, S> NonEmpty<IndexSet<T, S>>
where T: Eq + Hash, S: BuildHasher,

Source

pub fn from_one(item: T) -> Self
where S: Default,

Available on crate feature indexmap only.
Source

pub fn from_one_with_hasher(item: T, hasher: S) -> Self

Available on crate feature indexmap only.
Source

pub fn from_iter1_with_hasher<U>(items: U, hasher: S) -> Self
where U: IntoIterator1<Item = T>,

Available on crate feature indexmap only.
Source

pub fn from_head_and_tail<I>(head: T, tail: I) -> Self
where S: Default, I: IntoIterator<Item = T>,

Available on crate feature indexmap only.
Source

pub fn from_tail_and_head<I>(tail: I, head: T) -> Self
where S: Default, I: IntoIterator<Item = T>,

Available on crate feature indexmap only.
Source

pub fn append<SR>(&mut self, items: &mut IndexSet<T, SR>)

Available on crate feature indexmap only.
Source

pub fn insert(&mut self, item: T) -> bool

Available on crate feature indexmap only.
Source

pub fn insert_full(&mut self, item: T) -> (usize, bool)

Available on crate feature indexmap only.
Source

pub fn insert_sorted(&mut self, item: T) -> (usize, bool)
where T: Ord,

Available on crate feature indexmap only.
Source

pub fn replace(&mut self, item: T) -> Option<T>

Available on crate feature indexmap only.
Source

pub fn replace_full(&mut self, item: T) -> (usize, Option<T>)

Available on crate feature indexmap only.
Source

pub fn difference<'a, R, SR>(&'a self, other: &'a R) -> Difference<'a, T, SR>
where R: ClosedIndexSet<Item = T, State = SR>, SR: BuildHasher,

Available on crate feature indexmap only.
Source

pub fn symmetric_difference<'a, R, SR>( &'a self, other: &'a R, ) -> SymmetricDifference<'a, T, S, SR>
where R: ClosedIndexSet<Item = T, State = SR>, SR: BuildHasher,

Available on crate feature indexmap only.
Source

pub fn intersection<'a, R, SR>( &'a self, other: &'a R, ) -> Intersection<'a, T, SR>
where R: ClosedIndexSet<Item = T, State = SR>, SR: BuildHasher,

Available on crate feature indexmap only.
Source

pub fn union<'a, R, SR>(&'a self, other: &'a R) -> Iterator1<Union<'a, T, S>>
where R: ClosedIndexSet<Item = T, State = SR>, SR: 'a + BuildHasher,

Available on crate feature indexmap only.
Source

pub fn is_disjoint<R, SR>(&self, other: &R) -> bool
where R: ClosedIndexSet<Item = T, State = SR>, SR: BuildHasher,

Available on crate feature indexmap only.
Source

pub fn is_subset<R, SR>(&self, other: &R) -> bool
where R: ClosedIndexSet<Item = T, State = SR>, SR: BuildHasher,

Available on crate feature indexmap only.
Source

pub fn is_superset<R, SR>(&self, other: &R) -> bool
where R: ClosedIndexSet<Item = T, State = SR>, SR: BuildHasher,

Available on crate feature indexmap only.
Source§

impl<T, S> NonEmpty<IndexSet<T, S>>

Source

pub fn par_iter1( &self, ) -> ParallelIterator1<<&IndexSet<T, S> as IntoParallelIterator>::Iter>
where T: Sync, S: Sync,

Available on crate features indexmap and rayon only.
Source§

impl<T, S> NonEmpty<IndexSet<T, S>>
where T: Eq + Hash + Sync, S: BuildHasher + Sync,

Source

pub fn par_difference<'a, R, SR>( &'a self, other: &'a R, ) -> ParDifference<'a, T, S, SR>
where R: ClosedIndexSet<Item = T, State = SR>, SR: BuildHasher + Sync,

Available on crate features indexmap and rayon only.
Source

pub fn par_symmetric_difference<'a, R, SR>( &'a self, other: &'a R, ) -> ParSymmetricDifference<'a, T, S, SR>
where R: ClosedIndexSet<Item = T, State = SR>, SR: BuildHasher + Sync,

Available on crate features indexmap and rayon only.
Source

pub fn par_intersection<'a, R, SR>( &'a self, other: &'a R, ) -> ParIntersection<'a, T, S, SR>
where R: ClosedIndexSet<Item = T, State = SR>, SR: BuildHasher + Sync,

Available on crate features indexmap and rayon only.
Source

pub fn par_union<'a, R, SR>( &'a self, other: &'a R, ) -> ParallelIterator1<ParUnion<'a, T, S, SR>>
where R: ClosedIndexSet<Item = T, State = SR>, SR: 'a + BuildHasher + Sync,

Available on crate features indexmap and rayon only.
Source

pub fn par_eq<R, SR>(&self, other: &R) -> bool
where R: ClosedIndexSet<Item = T, State = SR>, SR: BuildHasher + Sync,

Available on crate features indexmap and rayon only.
Source

pub fn par_is_disjoint<R, SR>(&self, other: &R) -> bool
where R: ClosedIndexSet<Item = T, State = SR>, SR: BuildHasher + Sync,

Available on crate features indexmap and rayon only.
Source

pub fn par_is_subset<R, SR>(&self, other: &R) -> bool
where R: ClosedIndexSet<Item = T, State = SR>, SR: BuildHasher + Sync,

Available on crate features indexmap and rayon only.
Source

pub fn par_is_superset<R, SR>(&self, other: &R) -> bool
where R: ClosedIndexSet<Item = T, State = SR>, SR: BuildHasher + Sync,

Available on crate features indexmap and rayon only.
Source§

impl<T, S> NonEmpty<IndexSet<T, S>>
where T: Eq + Hash + Send + Sync, S: BuildHasher + Sync,

Source

pub fn par_sort(&mut self)
where T: Ord,

Available on crate features indexmap and rayon only.
Source

pub fn par_sort_by<F>(&mut self, f: F)
where F: Fn(&T, &T) -> Ordering + Sync,

Available on crate features indexmap and rayon only.
Source

pub fn par_sorted_by<F>(self, f: F) -> ParallelIterator1<IntoParIter<T>>
where F: Fn(&T, &T) -> Ordering + Sync,

Available on crate features indexmap and rayon only.
Source

pub fn par_sort_unstable(&mut self)
where T: Ord,

Available on crate features indexmap and rayon only.
Source

pub fn par_sort_unstable_by<F>(&mut self, f: F)
where F: Fn(&T, &T) -> Ordering + Sync,

Available on crate features indexmap and rayon only.
Source

pub fn par_sorted_unstable_by<F>( self, f: F, ) -> ParallelIterator1<IntoParIter<T>>
where F: Fn(&T, &T) -> Ordering + Sync,

Available on crate features indexmap and rayon only.
Source

pub fn par_sort_by_cached_key<K, F>(&mut self, f: F)
where K: Ord + Send, F: Fn(&T) -> K + Sync,

Available on crate features indexmap and rayon only.
Source§

impl<T> NonEmpty<IndexSet<T>>
where T: Eq + Hash,

Source

pub fn from_one_with_capacity(item: T, capacity: usize) -> Self

Available on crate features indexmap and std only.
Source

pub fn from_iter1_with_capacity<U>(items: U, capacity: usize) -> Self
where U: IntoIterator1<Item = T>,

Available on crate features indexmap and std only.
Source§

impl<T> NonEmpty<[T]>

Source

pub const unsafe fn from_slice_unchecked(items: &[T]) -> &Self

§Safety

items must be non-empty. For example, it is undefined behavior to call this function with an empty slice literal &[].

Source

pub const unsafe fn from_mut_slice_unchecked(items: &mut [T]) -> &mut Self

§Safety

items must be non-empty. For example, it is undefined behavior to call this function with an empty slice literal &mut [].

Source

pub fn try_from_slice(items: &[T]) -> Result<&Self, &[T]>

Source

pub fn try_from_mut_slice(items: &mut [T]) -> Result<&mut Self, &mut [T]>

Source

pub fn to_vec1(&self) -> Vec1<T>
where T: Clone,

Available on crate feature alloc only.
Source

pub fn into_vec1(self: BoxedSlice1<T>) -> Vec1<T>

Available on crate feature alloc only.
Source

pub fn once_and_then_repeat(&self, n: usize) -> Vec1<T>
where T: Copy,

Available on crate feature alloc only.
Source

pub const fn split_first(&self) -> (&T, &[T])

Source

pub const fn split_first_mut(&mut self) -> (&mut T, &mut [T])

Source

pub const fn first(&self) -> &T

Source

pub const fn first_mut(&mut self) -> &mut T

Source

pub const fn last(&self) -> &T

Source

pub const fn last_mut(&mut self) -> &mut T

Source

pub fn chunks(&self, n: usize) -> Iterator1<Chunks<'_, T>>

Source

pub fn chunks_mut(&mut self, n: usize) -> Iterator1<ChunksMut<'_, T>>

Source

pub fn rchunks(&self, n: usize) -> Iterator1<RChunks<'_, T>>

Source

pub fn rchunks_mut(&mut self, n: usize) -> Iterator1<RChunksMut<'_, T>>

Source

pub fn iter1(&self) -> Iterator1<Iter<'_, T>>

Source

pub fn iter1_mut(&mut self) -> Iterator1<IterMut<'_, T>>

Source

pub const fn len(&self) -> NonZeroUsize

Source

pub const fn as_slice(&self) -> &[T]

Source

pub const fn as_mut_slice(&mut self) -> &mut [T]

Source§

impl<T> NonEmpty<[T]>

Source

pub fn par_iter1( &self, ) -> ParallelIterator1<<&[T] as IntoParallelIterator>::Iter>
where T: Sync,

Available on crate feature rayon only.
Source

pub fn par_iter1_mut( &mut self, ) -> ParallelIterator1<<&mut [T] as IntoParallelIterator>::Iter>
where T: Send,

Available on crate feature rayon only.
Source§

impl<A, T> NonEmpty<SmallVec<A>>
where A: Array<Item = T>,

Source

pub unsafe fn from_small_vec_unchecked(items: SmallVec<A>) -> Self

Available on crate feature smallvec only.
§Safety

items must be non-empty. For example, it is unsound to call this function with the immediate output of SmallVec::new().

Source

pub fn from_one(item: T) -> Self

Available on crate feature smallvec only.
Source

pub fn from_one_with_capacity(item: T, capacity: usize) -> Self

Available on crate feature smallvec only.
Source

pub fn from_iter1_with_capacity<U>(items: U, capacity: usize) -> Self
where U: IntoIterator1<Item = T>,

Available on crate feature smallvec only.
Source

pub fn from_head_and_tail<I>(head: T, tail: I) -> Self
where I: IntoIterator<Item = T>,

Available on crate feature smallvec only.
Source

pub fn from_tail_and_head<I>(tail: I, head: T) -> Self
where I: IntoIterator<Item = T>,

Available on crate feature smallvec only.
Source

pub fn into_head_and_tail(self) -> (T, SmallVec<A>)

Available on crate feature smallvec only.
Source

pub fn into_tail_and_head(self) -> (SmallVec<A>, T)

Available on crate feature smallvec only.
Source

pub fn into_small_vec(self) -> SmallVec<A>

Available on crate feature smallvec only.
Source

pub fn try_into_array(self) -> Result<A, Self>

Available on crate feature smallvec only.
Source

pub fn into_boxed_slice1(self) -> BoxedSlice1<T>

Available on crate feature smallvec only.
Source

pub fn reserve(&mut self, additional: usize)

Available on crate feature smallvec only.
Source

pub fn reserve_exact(&mut self, additional: usize)

Available on crate feature smallvec only.
Source

pub fn shrink_to_fit(&mut self)

Available on crate feature smallvec only.
Source

pub fn append(&mut self, items: &mut SmallVec<A>)

Available on crate feature smallvec only.
Source

pub fn extend_from_slice(&mut self, items: &[T])
where T: Copy,

Available on crate feature smallvec only.
Source

pub fn push(&mut self, item: T)

Available on crate feature smallvec only.
Source

pub fn pop_or(&mut self) -> PopOr<'_, Self>

Available on crate feature smallvec only.
Source

pub fn insert(&mut self, index: usize, item: T)

Available on crate feature smallvec only.
Source

pub fn insert_from_slice(&mut self, index: usize, items: &[T])
where T: Copy,

Available on crate feature smallvec only.
Source

pub fn remove_or(&mut self, index: usize) -> RemoveOr<'_, Self>

Available on crate feature smallvec only.
Source

pub fn swap_remove_or(&mut self, index: usize) -> RemoveOr<'_, Self>

Available on crate feature smallvec only.
Source

pub fn dedup(&mut self)
where T: PartialEq,

Available on crate feature smallvec only.
Source

pub fn dedup_by<F>(&mut self, f: F)
where F: FnMut(&mut T, &mut T) -> bool,

Available on crate feature smallvec only.
Source

pub fn dedup_by_key<K, F>(&mut self, f: F)
where K: PartialEq, F: FnMut(&mut T) -> K,

Available on crate feature smallvec only.
Source

pub fn len(&self) -> NonZeroUsize

Available on crate feature smallvec only.
Source

pub fn capacity(&self) -> NonZeroUsize

Available on crate feature smallvec only.
Source

pub fn inline_size(&self) -> usize

Available on crate feature smallvec only.
Source

pub const fn as_small_vec(&self) -> &SmallVec<A>

Available on crate feature smallvec only.
Source

pub fn as_slice1(&self) -> &Slice1<T>

Available on crate feature smallvec only.
Source

pub fn as_mut_slice1(&mut self) -> &mut Slice1<T>

Available on crate feature smallvec only.
Source

pub fn as_ptr(&self) -> *const T

Available on crate feature smallvec only.
Source

pub fn as_mut_ptr(&mut self) -> *mut T

Available on crate feature smallvec only.
Source

pub fn spilled(&self) -> bool

Available on crate feature smallvec only.
Source§

impl<A> NonEmpty<SmallVec<A>>
where A: Array + Array1,

Source

pub fn from_buf(buf: A) -> Self

Available on crate feature smallvec only.
Source

pub fn from_buf_and_tail_len(buf: A, len: usize) -> Self

Available on crate feature smallvec only.
Source§

impl NonEmpty<str>

Source

pub const unsafe fn from_str_unchecked(items: &str) -> &Self

§Safety

items must be non-empty. For example, it is unsound to call this function with an empty string literal "".

Source

pub const unsafe fn from_mut_str_unchecked(items: &mut str) -> &mut Self

§Safety

items must be non-empty. For example, it is unsound to call this function with an empty string literal "".

Source

pub fn try_from_str(items: &str) -> Result<&Self, &str>

Source

pub fn try_from_mut_str(items: &mut str) -> Result<&mut Self, &mut str>

Source

pub fn to_string1(&self) -> String1

Available on crate feature alloc only.
Source

pub fn into_string1(self: BoxedStr1) -> String1

Available on crate feature alloc only.
Source

pub fn once_and_then_repeat(&self, n: usize) -> String1

Available on crate feature alloc only.
Source

pub fn encode1_utf16(&self) -> Iterator1<EncodeUtf16<'_>>

Source

pub fn split1<'a, P>( &'a self, separator: &'a P, ) -> Iterator1<Split<'a, &'a [char]>>
where P: 'a + AsRef<[char]>,

Source

pub fn split1_inclusive<'a, P>( &'a self, separator: &'a P, ) -> Iterator1<SplitInclusive<'a, &'a [char]>>
where P: 'a + AsRef<[char]>,

Source

pub fn split1_terminator<'a, P>( &'a self, separator: &'a P, ) -> Iterator1<SplitTerminator<'a, &'a [char]>>
where P: 'a + AsRef<[char]>,

Source

pub fn chars1(&self) -> Iterator1<Chars<'_>>

Source

pub fn char_indices1(&self) -> Iterator1<CharIndices<'_>>

Source

pub fn bytes1(&self) -> Iterator1<Bytes<'_>>

Source

pub fn lines1(&self) -> Iterator1<Lines<'_>>

Source

pub const fn len(&self) -> NonZeroUsize

Source

pub const fn as_bytes1(&self) -> &Slice1<u8>

Source

pub const fn as_bytes1_mut(&mut self) -> &mut Slice1<u8>

Source

pub const fn as_str(&self) -> &str

Source

pub const fn as_mut_str(&mut self) -> &mut str

Source§

impl NonEmpty<str>

Source

pub fn par_encode1_utf16(&self) -> ParallelIterator1<EncodeUtf16<'_>>

Available on crate feature rayon only.
Source

pub fn par_split1<'a, P>( &'a self, separator: &'a P, ) -> ParallelIterator1<Split<'a, &'a [char]>>
where P: 'a + AsRef<[char]>,

Available on crate feature rayon only.
Source

pub fn par_split1_inclusive<'a, P>( &'a self, separator: &'a P, ) -> ParallelIterator1<SplitInclusive<'a, &'a [char]>>
where P: 'a + AsRef<[char]>,

Available on crate feature rayon only.
Source

pub fn par_split1_terminator<'a, P>( &'a self, separator: &'a P, ) -> ParallelIterator1<SplitTerminator<'a, &'a [char]>>
where P: 'a + AsRef<[char]>,

Available on crate feature rayon only.
Source

pub fn par_chars1(&self) -> ParallelIterator1<Chars<'_>>

Available on crate feature rayon only.
Source

pub fn par_char_indices1(&self) -> ParallelIterator1<CharIndices<'_>>

Available on crate feature rayon only.
Source

pub fn par_bytes1(&self) -> ParallelIterator1<Bytes<'_>>

Available on crate feature rayon only.
Source

pub fn par_lines1(&self) -> ParallelIterator1<Lines<'_>>

Available on crate feature rayon only.
Source§

impl NonEmpty<String>

Source

pub unsafe fn from_string_unchecked(items: String) -> Self

Available on crate feature alloc only.
§Safety

items must be non-empty. For example, it is unsound to call this function with the immediate output of Vec::new().

Source

pub fn from_one_with_capacity<U>(item: char, capacity: usize) -> Self

Available on crate feature alloc only.
Source

pub fn from_iter1_with_capacity<U>(items: U, capacity: usize) -> Self

Available on crate feature alloc only.
Source

pub fn from_utf8(items: Vec1<u8>) -> Result<Self, FromUtf8Error>

Available on crate feature alloc only.
Source

pub fn from_utf8_lossy(items: &Slice1<u8>) -> CowStr1<'_>

Available on crate feature alloc only.
Source

pub fn from_utf16(items: &Slice1<u16>) -> Result<Self, FromUtf16Error>

Available on crate feature alloc only.
Source

pub fn from_utf16_lossy(items: &Slice1<u16>) -> String1

Available on crate feature alloc only.
Source

pub fn into_string(self) -> String

Available on crate feature alloc only.
Source

pub fn into_boxed_str1(self) -> BoxedStr1

Available on crate feature alloc only.
Source

pub fn leak<'a>(self) -> &'a mut Str1

Available on crate feature alloc only.
Source

pub fn reserve(&mut self, additional: usize)

Available on crate feature alloc only.
Source

pub fn reserve_exact(&mut self, additional: usize)

Available on crate feature alloc only.
Source

pub fn shrink_to(&mut self, capacity: usize)

Available on crate feature alloc only.
Source

pub fn shrink_to_fit(&mut self)

Available on crate feature alloc only.
Source

pub fn split_off_tail(&mut self) -> String

Available on crate feature alloc only.
Source

pub fn push(&mut self, item: char)

Available on crate feature alloc only.
Source

pub fn push_str(&mut self, items: &str)

Available on crate feature alloc only.
Source

pub fn pop_or(&mut self) -> PopOr<'_>

Available on crate feature alloc only.
Source

pub fn insert(&mut self, index: usize, item: char)

Available on crate feature alloc only.
Source

pub fn remove_or(&mut self, index: usize) -> RemoveOr<'_>

Available on crate feature alloc only.
Source

pub fn len(&self) -> NonZeroUsize

Available on crate feature alloc only.
Source

pub fn capacity(&self) -> NonZeroUsize

Available on crate feature alloc only.
Source

pub const fn as_string(&self) -> &String

Available on crate feature alloc only.
Source

pub unsafe fn as_mut_vec1(&mut self) -> &mut Vec1<u8>

Available on crate feature alloc only.
§Safety

The returned Vec1 must contain valid UTF-8 when the reference is dropped. Note that the non-empty guarantee of String1 may also be violated by invalid UTF-8, because invalid UTF-8 bytes may yield no code points.

Source

pub fn as_str1(&self) -> &Str1

Available on crate feature alloc only.
Source

pub fn as_mut_str1(&mut self) -> &mut Str1

Available on crate feature alloc only.
Source

pub fn as_ptr(&self) -> *const u8

Available on crate feature alloc only.
Source

pub fn as_mut_ptr(&mut self) -> *mut u8

Available on crate feature alloc only.
Source§

impl<T> NonEmpty<Vec<T>>

Source

pub unsafe fn from_vec_unchecked(items: Vec<T>) -> Self

Available on crate feature alloc only.
§Safety

items must be non-empty. For example, it is unsound to call this function with the immediate output of Vec::new().

Source

pub fn from_one(item: T) -> Self

Available on crate feature alloc only.
Source

pub fn from_one_with_capacity(item: T, capacity: usize) -> Self

Available on crate feature alloc only.
Source

pub fn from_iter1_with_capacity<U>(items: U, capacity: usize) -> Self
where U: IntoIterator1<Item = T>,

Available on crate feature alloc only.
Source

pub fn from_head_and_tail<I>(head: T, tail: I) -> Self
where I: IntoIterator<Item = T>,

Available on crate feature alloc only.
Source

pub fn from_tail_and_head<I>(tail: I, head: T) -> Self
where I: IntoIterator<Item = T>,

Available on crate feature alloc only.
Source

pub fn into_head_and_tail(self) -> (T, Vec<T>)

Available on crate feature alloc only.
Source

pub fn into_tail_and_head(self) -> (Vec<T>, T)

Available on crate feature alloc only.
Source

pub fn into_vec(self) -> Vec<T>

Available on crate feature alloc only.
Source

pub fn into_boxed_slice1(self) -> BoxedSlice1<T>

Available on crate feature alloc only.
Source

pub fn leak<'a>(self) -> &'a mut Slice1<T>

Available on crate feature alloc only.
Source

pub fn reserve(&mut self, additional: usize)

Available on crate feature alloc only.
Source

pub fn reserve_exact(&mut self, additional: usize)

Available on crate feature alloc only.
Source

pub fn shrink_to(&mut self, capacity: usize)

Available on crate feature alloc only.
Source

pub fn shrink_to_fit(&mut self)

Available on crate feature alloc only.
Source

pub fn split_off_tail(&mut self) -> Vec<T>

Available on crate feature alloc only.
Source

pub fn append(&mut self, items: &mut Vec<T>)

Available on crate feature alloc only.
Source

pub fn extend_from_slice(&mut self, items: &[T])
where T: Clone,

Available on crate feature alloc only.
Source

pub fn extend_from_within<R>(&mut self, range: R)
where T: Clone, R: RangeBounds<usize>,

Available on crate feature alloc only.
Source

pub fn push(&mut self, item: T)

Available on crate feature alloc only.
Source

pub fn pop_or(&mut self) -> PopOr<'_, Self>

Available on crate feature alloc only.
Source

pub fn insert(&mut self, index: usize, item: T)

Available on crate feature alloc only.
Source

pub fn remove_or(&mut self, index: usize) -> RemoveOr<'_, Self>

Available on crate feature alloc only.
Source

pub fn swap_remove_or(&mut self, index: usize) -> RemoveOr<'_, Self>

Available on crate feature alloc only.
Source

pub fn dedup(&mut self)
where T: PartialEq,

Available on crate feature alloc only.
Source

pub fn dedup_by<F>(&mut self, f: F)
where F: FnMut(&mut T, &mut T) -> bool,

Available on crate feature alloc only.
Source

pub fn dedup_by_key<K, F>(&mut self, f: F)
where K: PartialEq, F: FnMut(&mut T) -> K,

Available on crate feature alloc only.
Source

pub fn len(&self) -> NonZeroUsize

Available on crate feature alloc only.
Source

pub fn capacity(&self) -> NonZeroUsize

Available on crate feature alloc only.
Source

pub const fn as_vec(&self) -> &Vec<T>

Available on crate feature alloc only.
Source

pub fn as_slice1(&self) -> &Slice1<T>

Available on crate feature alloc only.
Source

pub fn as_mut_slice1(&mut self) -> &mut Slice1<T>

Available on crate feature alloc only.
Source

pub fn as_ptr(&self) -> *const T

Available on crate feature alloc only.
Source

pub fn as_mut_ptr(&mut self) -> *mut T

Available on crate feature alloc only.
Source§

impl<T, const N: usize> NonEmpty<Vec<[T; N]>>

Source

pub fn into_flattened(self) -> Vec1<T>

Available on crate feature alloc only.
Source§

impl<T> NonEmpty<VecDeque<T>>

Source

pub unsafe fn from_vec_deque_unchecked(items: VecDeque<T>) -> Self

Available on crate feature alloc only.
§Safety

items must be non-empty. For example, it is unsound to call this function with the immediate output of VecDeque::new().

Source

pub fn from_one(item: T) -> Self

Available on crate feature alloc only.
Source

pub fn from_one_with_capacity(item: T, capacity: usize) -> Self

Available on crate feature alloc only.
Source

pub fn from_iter1_with_capacity<U>(items: U, capacity: usize) -> Self
where U: IntoIterator1<Item = T>,

Available on crate feature alloc only.
Source

pub fn from_head_and_tail<I>(head: T, tail: I) -> Self
where I: IntoIterator<Item = T>,

Available on crate feature alloc only.
Source

pub fn from_tail_and_head<I>(tail: I, head: T) -> Self
where I: IntoIterator<Item = T>,

Available on crate feature alloc only.
Source

pub fn into_vec_deque(self) -> VecDeque<T>

Available on crate feature alloc only.
Source

pub fn shrink_to(&mut self, capacity: usize)

Available on crate feature alloc only.
Source

pub fn shrink_to_fit(&mut self)

Available on crate feature alloc only.
Source

pub fn make_contiguous(&mut self) -> &mut Slice1<T>

Available on crate feature alloc only.
Source

pub fn rotate_left(&mut self, n: usize)

Available on crate feature alloc only.
Source

pub fn rotate_right(&mut self, n: usize)

Available on crate feature alloc only.
Source

pub fn split_off_tail(&mut self) -> VecDeque<T>

Available on crate feature alloc only.
Source

pub fn append(&mut self, items: &mut VecDeque<T>)

Available on crate feature alloc only.
Source

pub fn push_front(&mut self, item: T)

Available on crate feature alloc only.
Source

pub fn push_back(&mut self, item: T)

Available on crate feature alloc only.
Source

pub fn pop_front_or(&mut self) -> PopOr<'_, Self>

Available on crate feature alloc only.
Source

pub fn pop_back_or(&mut self) -> PopOr<'_, Self>

Available on crate feature alloc only.
Source

pub fn insert(&mut self, index: usize, item: T)

Available on crate feature alloc only.
Source

pub fn remove_or(&mut self, index: usize) -> RemoveOr<'_, Self>

Available on crate feature alloc only.
Source

pub fn swap_remove_front_or(&mut self, index: usize) -> RemoveOr<'_, Self>

Available on crate feature alloc only.
Source

pub fn swap_remove_back_or(&mut self, index: usize) -> RemoveOr<'_, Self>

Available on crate feature alloc only.
Source

pub fn get(&self, index: usize) -> Option<&T>

Available on crate feature alloc only.
Source

pub fn get_mut(&mut self, index: usize) -> Option<&mut T>

Available on crate feature alloc only.
Source

pub fn len(&self) -> NonZeroUsize

Available on crate feature alloc only.
Source

pub fn capacity(&self) -> NonZeroUsize

Available on crate feature alloc only.
Source

pub fn front(&self) -> &T

Available on crate feature alloc only.
Source

pub fn front_mut(&mut self) -> &mut T

Available on crate feature alloc only.
Source

pub fn back(&self) -> &T

Available on crate feature alloc only.
Source

pub fn back_mut(&mut self) -> &mut T

Available on crate feature alloc only.
Source

pub fn iter1(&self) -> Iterator1<Iter<'_, T>>

Available on crate feature alloc only.
Source

pub fn iter1_mut(&mut self) -> Iterator1<IterMut<'_, T>>

Available on crate feature alloc only.
Source

pub const fn as_vec_deque(&self) -> &VecDeque<T>

Available on crate feature alloc only.
Source§

impl<T> NonEmpty<VecDeque<T>>

Source

pub fn par_iter1( &self, ) -> ParallelIterator1<<&VecDeque<T> as IntoParallelIterator>::Iter>
where T: Sync,

Available on crate features alloc and rayon only.
Source

pub fn par_iter1_mut( &mut self, ) -> ParallelIterator1<<&mut VecDeque<T> as IntoParallelIterator>::Iter>
where T: Send,

Available on crate features alloc and rayon only.

Trait Implementations§

Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 1]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 10]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 11]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 12]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 13]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 14]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 15]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 16]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 17]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 18]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 19]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 2]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 20]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 21]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 22]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 23]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 24]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 25]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 26]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 27]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 28]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 29]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 3]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 30]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 31]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 32]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 33]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 34]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 35]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 36]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 37]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 38]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 39]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 4]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 40]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 41]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 42]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 43]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 44]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 45]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 46]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 47]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 48]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 49]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 5]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 50]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 51]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 52]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 53]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 54]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 55]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 56]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 57]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 58]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 59]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 6]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 60]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 61]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 62]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 63]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 64]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 7]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 8]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for [T; 9]

Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T, const N: usize> AsMut<NonEmpty<[T]>> for ArrayVec1<T, N>
where [T; N]: Array1,

Available on crate feature arrayvec only.
Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<A, T> AsMut<NonEmpty<[T]>> for SmallVec1<A>
where A: Array<Item = T>,

Available on crate feature smallvec only.
Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsMut<NonEmpty<[T]>> for Vec1<T>

Available on crate feature alloc only.
Source§

fn as_mut(&mut self) -> &mut Slice1<T>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<NonEmpty<str>> for String1

Available on crate feature alloc only.
Source§

fn as_mut(&mut self) -> &mut Str1

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 1]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 10]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 11]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 12]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 13]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 14]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 15]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 16]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 17]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 18]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 19]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 2]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 20]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 21]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 22]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 23]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 24]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 25]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 26]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 27]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 28]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 29]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 3]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 30]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 31]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 32]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 33]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 34]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 35]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 36]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 37]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 38]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 39]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 4]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 40]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 41]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 42]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 43]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 44]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 45]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 46]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 47]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 48]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 49]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 5]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 50]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 51]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 52]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 53]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 54]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 55]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 56]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 57]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 58]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 59]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 6]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 60]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 61]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 62]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 63]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 64]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 7]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 8]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for [T; 9]

Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T, const N: usize> AsRef<NonEmpty<[T]>> for ArrayVec1<T, N>
where [T; N]: Array1,

Available on crate feature arrayvec only.
Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<A, T> AsRef<NonEmpty<[T]>> for SmallVec1<A>
where A: Array<Item = T>,

Available on crate feature smallvec only.
Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<NonEmpty<[T]>> for Vec1<T>

Available on crate feature alloc only.
Source§

fn as_ref(&self) -> &Slice1<T>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NonEmpty<str>> for String1

Available on crate feature alloc only.
Source§

fn as_ref(&self) -> &Str1

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> AsRef<T> for NonEmpty<T>

Source§

fn as_ref(&self) -> &T

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T> BitAnd<&NonEmpty<BTreeSet<T>>> for &BTreeSet<T>
where T: Clone + Ord,

Available on crate feature alloc only.
Source§

type Output = BTreeSet<T>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &BTreeSet1<T>) -> Self::Output

Performs the & operation. Read more
Source§

impl<T, S, S1> BitAnd<&NonEmpty<IndexSet<T, S1>>> for &IndexSet<T, S>
where T: Clone + Eq + Hash, S: BuildHasher + Default, S1: BuildHasher,

Available on crate feature indexmap only.
Source§

type Output = IndexSet<T, S>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &IndexSet1<T, S1>) -> Self::Output

Performs the & operation. Read more
Source§

impl<T> BitOr<&NonEmpty<BTreeSet<T>>> for &BTreeSet<T>
where T: Clone + Ord,

Available on crate feature alloc only.
Source§

type Output = NonEmpty<BTreeSet<T>>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &BTreeSet1<T>) -> Self::Output

Performs the | operation. Read more
Source§

impl<T, S, S1> BitOr<&NonEmpty<IndexSet<T, S1>>> for &IndexSet<T, S>
where T: Clone + Eq + Hash, S: BuildHasher + Default, S1: BuildHasher,

Available on crate feature indexmap only.
Source§

type Output = NonEmpty<IndexSet<T, S>>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &IndexSet1<T, S1>) -> Self::Output

Performs the | operation. Read more
Source§

impl<T> BitXor<&NonEmpty<BTreeSet<T>>> for &BTreeSet<T>
where T: Clone + Ord,

Available on crate feature alloc only.
Source§

type Output = BTreeSet<T>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &BTreeSet1<T>) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<T, S, S1> BitXor<&NonEmpty<IndexSet<T, S1>>> for &IndexSet<T, S>
where T: Clone + Eq + Hash, S: BuildHasher + Default, S1: BuildHasher,

Available on crate feature indexmap only.
Source§

type Output = IndexSet<T, S>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &IndexSet1<T, S1>) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 1]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 10]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 11]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 12]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 13]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 14]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 15]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 16]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 17]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 18]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 19]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 2]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 20]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 21]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 22]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 23]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 24]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 25]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 26]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 27]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 28]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 29]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 3]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 30]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 31]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 32]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 33]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 34]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 35]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 36]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 37]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 38]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 39]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 4]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 40]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 41]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 42]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 43]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 44]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 45]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 46]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 47]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 48]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 49]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 5]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 50]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 51]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 52]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 53]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 54]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 55]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 56]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 57]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 58]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 59]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 6]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 60]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 61]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 62]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 63]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 64]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 7]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 8]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for [T; 9]

Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T, const N: usize> Borrow<NonEmpty<[T]>> for ArrayVec1<T, N>
where [T; N]: Array1,

Available on crate feature arrayvec only.
Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<A, T> Borrow<NonEmpty<[T]>> for SmallVec1<A>
where A: Array<Item = T>,

Available on crate feature smallvec only.
Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl<T> Borrow<NonEmpty<[T]>> for Vec1<T>

Available on crate feature alloc only.
Source§

fn borrow(&self) -> &Slice1<T>

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NonEmpty<str>> for String1

Available on crate feature alloc only.
Source§

fn borrow(&self) -> &Str1

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 1]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 10]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 11]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 12]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 13]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 14]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 15]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 16]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 17]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 18]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 19]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 2]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 20]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 21]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 22]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 23]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 24]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 25]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 26]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 27]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 28]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 29]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 3]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 30]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 31]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 32]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 33]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 34]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 35]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 36]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 37]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 38]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 39]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 4]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 40]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 41]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 42]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 43]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 44]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 45]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 46]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 47]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 48]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 49]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 5]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 50]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 51]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 52]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 53]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 54]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 55]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 56]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 57]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 58]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 59]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 6]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 60]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 61]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 62]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 63]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 64]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 7]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 8]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for [T; 9]

Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T, const N: usize> BorrowMut<NonEmpty<[T]>> for ArrayVec1<T, N>
where [T; N]: Array1,

Available on crate feature arrayvec only.
Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<A, T> BorrowMut<NonEmpty<[T]>> for SmallVec1<A>
where A: Array<Item = T>,

Available on crate feature smallvec only.
Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<NonEmpty<[T]>> for Vec1<T>

Available on crate feature alloc only.
Source§

fn borrow_mut(&mut self) -> &mut Slice1<T>

Mutably borrows from an owned value. Read more
Source§

impl BorrowMut<NonEmpty<str>> for String1

Available on crate feature alloc only.
Source§

fn borrow_mut(&mut self) -> &mut Str1

Mutably borrows from an owned value. Read more
Source§

impl<T> Clone for NonEmpty<T>
where T: ?Sized + Clone,

Source§

fn clone(&self) -> NonEmpty<T>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'de, T> Deserialize<'de> for NonEmpty<T>
where T: ?Sized + Clone + Deserialize<'de>, Self: TryFrom<Serde<T>, Error = EmptyError>,

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<'a, T> From<&'a NonEmpty<[T]>> for ArcSlice1<T>
where T: Clone,

Available on crate feature alloc and target_has_atomic="ptr" only.
Source§

fn from(items: &'a Slice1<T>) -> Self

Converts to this type from the input type.
Source§

impl<'a, T> From<&'a NonEmpty<[T]>> for BoxedSlice1<T>
where T: Clone,

Available on crate feature alloc only.
Source§

fn from(items: &'a Slice1<T>) -> Self

Converts to this type from the input type.
Source§

impl<'a, T> From<&'a NonEmpty<[T]>> for CowSlice1<'a, T>
where T: Clone,

Available on crate feature alloc only.
Source§

fn from(items: &'a Slice1<T>) -> Self

Converts to this type from the input type.
Source§

impl<'a, A, T> From<&'a NonEmpty<[T]>> for SmallVec1<A>
where A: Array<Item = T>, T: Clone,

Available on crate feature smallvec only.
Source§

fn from(items: &'a Slice1<T>) -> Self

Converts to this type from the input type.
Source§

impl<'a, T> From<&'a NonEmpty<[T]>> for Vec1<T>
where T: Clone,

Available on crate feature alloc only.
Source§

fn from(items: &'a Slice1<T>) -> Self

Converts to this type from the input type.
Source§

impl<'a, T> From<&'a NonEmpty<[T]>> for Vec<T>
where T: Clone,

Available on crate feature alloc only.
Source§

fn from(items: &'a Slice1<T>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a NonEmpty<String>> for CowStr1<'a>

Available on crate feature alloc only.
Source§

fn from(items: &'a String1) -> Self

Converts to this type from the input type.
Source§

impl<'a, T> From<&'a NonEmpty<Vec<T>>> for CowSlice1<'a, T>
where T: Clone,

Available on crate feature alloc only.
Source§

fn from(items: &'a Vec1<T>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a NonEmpty<str>> for &'a str

Source§

fn from(items: &'a Str1) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a NonEmpty<str>> for CowStr1<'a>

Available on crate feature alloc only.
Source§

fn from(items: &'a Str1) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a NonEmpty<str>> for String1

Available on crate feature alloc only.
Source§

fn from(items: &'a Str1) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a NonEmpty<str>> for Vec1<u8>

Available on crate feature alloc only.
Source§

fn from(items: &'a Str1) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a NonEmpty<str>> for String

Available on crate feature alloc only.
Source§

fn from(items: &'a Str1) -> Self

Converts to this type from the input type.
Source§

impl<'a, A, T> From<&'a mut NonEmpty<[T]>> for SmallVec1<A>
where A: Array<Item = T>, T: Clone,

Available on crate feature smallvec only.
Source§

fn from(items: &'a mut Slice1<T>) -> Self

Converts to this type from the input type.
Source§

impl<'a, T> From<&'a mut NonEmpty<[T]>> for Vec1<T>
where T: Clone,

Available on crate feature alloc only.
Source§

fn from(items: &'a mut Slice1<T>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut NonEmpty<str>> for &'a mut str

Source§

fn from(items: &'a mut Str1) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut NonEmpty<str>> for String1

Available on crate feature alloc only.
Source§

fn from(items: &'a mut Str1) -> Self

Converts to this type from the input type.
Source§

impl<T, const N: usize> From<NonEmpty<ArrayVec<T, N>>> for ArrayVec<T, N>

Available on crate feature arrayvec only.
Source§

fn from(items: ArrayVec1<T, N>) -> Self

Converts to this type from the input type.
Source§

impl<K, V> From<NonEmpty<BTreeMap<K, V>>> for BTreeMap<K, V>

Available on crate feature alloc only.
Source§

fn from(items: BTreeMap1<K, V>) -> Self

Converts to this type from the input type.
Source§

impl<T> From<NonEmpty<BTreeSet<T>>> for BTreeSet<T>

Available on crate feature alloc only.
Source§

fn from(items: BTreeSet1<T>) -> Self

Converts to this type from the input type.
Source§

impl<K, V, S> From<NonEmpty<IndexMap<K, V, S>>> for IndexMap<K, V, S>

Available on crate feature indexmap only.
Source§

fn from(items: IndexMap1<K, V, S>) -> Self

Converts to this type from the input type.
Source§

impl<T, S> From<NonEmpty<IndexSet<T, S>>> for IndexSet<T, S>

Available on crate feature indexmap only.
Source§

fn from(items: IndexSet1<T, S>) -> Self

Converts to this type from the input type.
Source§

impl<A> From<NonEmpty<SmallVec<A>>> for SmallVec<A>
where A: Array,

Available on crate feature smallvec only.
Source§

fn from(items: SmallVec1<A>) -> Self

Converts to this type from the input type.
Source§

impl From<NonEmpty<String>> for CowStr1<'_>

Available on crate feature alloc only.
Source§

fn from(items: String1) -> Self

Converts to this type from the input type.
Source§

impl From<NonEmpty<String>> for Vec1<u8>

Available on crate feature alloc only.
Source§

fn from(items: String1) -> Self

Converts to this type from the input type.
Source§

impl From<NonEmpty<String>> for String

Available on crate feature alloc only.
Source§

fn from(items: String1) -> Self

Converts to this type from the input type.
Source§

impl<T> From<NonEmpty<Vec<T>>> for ArcSlice1<T>

Available on crate feature alloc and target_has_atomic="ptr" only.
Source§

fn from(items: Vec1<T>) -> Self

Converts to this type from the input type.
Source§

impl<T> From<NonEmpty<Vec<T>>> for BoxedSlice1<T>

Available on crate feature alloc only.
Source§

fn from(items: Vec1<T>) -> Self

Converts to this type from the input type.
Source§

impl<T> From<NonEmpty<Vec<T>>> for CowSlice1<'_, T>
where T: Clone,

Available on crate feature alloc only.
Source§

fn from(items: Vec1<T>) -> Self

Converts to this type from the input type.
Source§

impl<A, T> From<NonEmpty<Vec<T>>> for SmallVec1<A>
where A: Array<Item = T>,

Available on crate feature smallvec only.
Source§

fn from(items: Vec1<T>) -> Self

Converts to this type from the input type.
Source§

impl<T> From<NonEmpty<Vec<T>>> for Vec<T>

Available on crate feature alloc only.
Source§

fn from(items: Vec1<T>) -> Self

Converts to this type from the input type.
Source§

impl<T> From<NonEmpty<VecDeque<T>>> for Vec1<T>

Available on crate feature alloc only.
Source§

fn from(items: VecDeque1<T>) -> Self

Converts to this type from the input type.
Source§

impl<T> From<NonEmpty<VecDeque<T>>> for VecDeque<T>

Available on crate feature alloc only.
Source§

fn from(items: VecDeque1<T>) -> Self

Converts to this type from the input type.
Source§

impl<T> Hash for NonEmpty<T>
where T: ?Sized + Hash,

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<T> Ord for NonEmpty<T>
where T: ?Sized + Ord,

Source§

fn cmp(&self, other: &NonEmpty<T>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl<T> PartialEq for NonEmpty<T>
where T: ?Sized + PartialEq,

Source§

fn eq(&self, other: &NonEmpty<T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T> PartialOrd for NonEmpty<T>
where T: ?Sized + PartialOrd,

Source§

fn partial_cmp(&self, other: &NonEmpty<T>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<T> Serialize for NonEmpty<T>
where T: ?Sized + Clone + Serialize,

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<T> Sub<&NonEmpty<BTreeSet<T>>> for &BTreeSet<T>
where T: Clone + Ord,

Available on crate feature alloc only.
Source§

type Output = BTreeSet<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &BTreeSet1<T>) -> Self::Output

Performs the - operation. Read more
Source§

impl<T, S, S1> Sub<&NonEmpty<IndexSet<T, S1>>> for &IndexSet<T, S>
where T: Clone + Eq + Hash, S: BuildHasher + Default, S1: BuildHasher,

Available on crate feature indexmap only.
Source§

type Output = IndexSet<T, S>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &IndexSet1<T, S1>) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a, T, const N: usize> TryFrom<&'a NonEmpty<[T]>> for ArrayVec1<T, N>
where [T; N]: Array1, T: Clone,

Available on crate feature arrayvec only.
Source§

type Error = &'a NonEmpty<[T]>

The type returned in the event of a conversion error.
Source§

fn try_from(items: &'a Slice1<T>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<T> Copy for NonEmpty<T>
where T: ?Sized + Copy,

Source§

impl<T> Eq for NonEmpty<T>
where T: ?Sized + Eq,

Source§

impl<T> StructuralPartialEq for NonEmpty<T>
where T: ?Sized,

Auto Trait Implementations§

§

impl<T> Freeze for NonEmpty<T>
where T: Freeze + ?Sized,

§

impl<T> RefUnwindSafe for NonEmpty<T>
where T: RefUnwindSafe + ?Sized,

§

impl<T> Send for NonEmpty<T>
where T: Send + ?Sized,

§

impl<T> Sync for NonEmpty<T>
where T: Sync + ?Sized,

§

impl<T> Unpin for NonEmpty<T>
where T: Unpin + ?Sized,

§

impl<T> UnwindSafe for NonEmpty<T>
where T: UnwindSafe + ?Sized,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

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

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<'data, I> IntoParallelRefIterator<'data> for I
where I: 'data + ?Sized, &'data I: IntoParallelIterator,

Source§

type Iter = <&'data I as IntoParallelIterator>::Iter

The type of the parallel iterator that will be returned.
Source§

type Item = <&'data I as IntoParallelIterator>::Item

The type of item that the parallel iterator will produce. This will typically be an &'data T reference type.
Source§

fn par_iter(&'data self) -> <I as IntoParallelRefIterator<'data>>::Iter

Converts self into a parallel iterator. Read more
Source§

impl<'data, I> IntoParallelRefMutIterator<'data> for I

Source§

type Iter = <&'data mut I as IntoParallelIterator>::Iter

The type of iterator that will be created.
Source§

type Item = <&'data mut I as IntoParallelIterator>::Item

The type of item that will be produced; this is typically an &'data mut T reference.
Source§

fn par_iter_mut( &'data mut self, ) -> <I as IntoParallelRefMutIterator<'data>>::Iter

Creates the parallel iterator from self. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,