[][src]Struct generic_vec::GenericVec

#[repr(C)]pub struct GenericVec<T, S: ?Sized + Storage<T>> { /* fields omitted */ }

A vector type that can be backed up by a variety of different backends including slices, arrays, and the heap.

Implementations

impl<T, S: Storage<T>> GenericVec<T, S>[src]

pub fn with_storage(storage: S) -> Self[src]

Create a new empty GenericVec with the given backend

use generic_vec::{GenericVec, raw::ZeroSized};
let vec = GenericVec::with_storage(ZeroSized::<[i32; 0]>::NEW);

impl<T, S: StorageWithCapacity<T>> GenericVec<T, S>[src]

pub fn with_capacity(capacity: usize) -> Self[src]

Create a new empty GenericVec with the backend with at least the given capacity

impl<T, B> GenericVec<T, UninitBuffer<B, A>>[src]

pub const fn new() -> Self[src]

Create a new TypeVec

impl<T, B, A> GenericVec<T, UninitBuffer<B, A>>[src]

pub const fn with_align() -> Self[src]

Create a new TypeVec with the given alignment type

impl<T, const N: usize> GenericVec<T, UninitBuffer<[T; N], T>>[src]

pub const fn from_array(array: [T; N]) -> Self[src]

This is supported on crate feature nightly only.

Create a new full ArrayVec

pub fn into_array(self) -> [T; N][src]

This is supported on crate feature nightly only.

Convert this ArrayVec into an array

Panic

Panics if the the collection is not full

impl<T> GenericVec<T, Heap<T, A>>[src]

pub const fn new() -> Self[src]

This is supported on crate feature alloc only.

Create a new empty HeapVec

impl<T, A: AllocRef> GenericVec<T, Heap<T, A>>[src]

pub fn with_alloc(alloc: A) -> Self[src]

This is supported on crate features nightly and alloc only.

Create a new empty HeapVec with the given allocator

impl<'a, T> GenericVec<T, &'a mut UninitSlice<T>>[src]

pub fn new(slice: &'a mut [MaybeUninit<T>]) -> Self[src]

Create a new empty SliceVec

impl<'a, T> GenericVec<T, &'a mut UninitSlice<T>>[src]

pub const fn new(slice: &'a mut [MaybeUninit<T>]) -> Self[src]

Create a new empty SliceVec

Note: this is only const with the nightly feature enabled

impl<'a, T: Copy> GenericVec<T, &'a mut [T]>[src]

pub fn new(storage: &'a mut [T]) -> Self[src]

Create a new full InitSliceVec

impl<T, S: Storage<T>> GenericVec<T, S>[src]

pub fn into_raw_parts(self) -> (usize, S)[src]

Convert a GenericVec into a length-storage pair

pub unsafe fn from_raw_parts(len: usize, storage: S) -> Self[src]

Create a GenericVec from a length-storage pair

Safety

the length must be less than raw.capacity() and all elements in the range 0..length, must be initialized

Panic

If the given storage cannot hold type T, then this method will panic

impl<T> GenericVec<T, ZeroSized<T>>[src]

pub const NEW: Self[src]

Create a new counter vector

pub const fn new() -> Self[src]

Create a new counter vector

impl<T, S: ?Sized + Storage<T>> GenericVec<T, S>[src]

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

Returns a shared raw pointer to the vector's buffer.

It's not safe to write to this pointer except for values inside of an UnsafeCell

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

Returns a unique raw pointer to the vector's buffer.

pub fn len(&self) -> usize[src]

Returns the number of elements in the vector

pub fn capacity(&self) -> usize[src]

Returns the number of elements the vector can hold without reallocating or panicing.

pub fn is_empty(&self) -> bool[src]

Returns true if and only if the vector contains no elements.

pub fn is_full(&self) -> bool[src]

Returns true if and only if the vector's length is equal to it's capacity.

pub fn remaining_capacity(&self) -> usize[src]

Returns the length of the spare capacity of the GenericVec

pub unsafe fn set_len_unchecked(&mut self, len: usize)[src]

Set the length of a vector

Safety

  • new_len must be less than or equal to capacity().
  • The elements at old_len..new_len must be initialized.

pub fn set_len(&mut self, len: usize) where
    S: StorageInit<T>, 
[src]

Set the length of a vector

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

Extracts a slice containing the entire vector.

Equivalent to &s[..].

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

Extracts a mutable slice containing the entire vector.

Equivalent to &mut s[..].

pub fn storage(&self) -> &S[src]

Returns the underlying storage

pub unsafe fn storage_mut(&mut self) -> &mut S[src]

Returns the underlying storage

Safety

You must not replace the storage

pub fn spare_capacity_mut(&mut self) -> SliceVec<'_, T>[src]

Returns the remaining spare capacity of the vector as a SliceVec<'_, T>.

Keep in mind that the SliceVec<'_, T> will drop all elements that you push into it when it goes out of scope! If you want these modifications to persist then you should use save_spare to persist these writes.

let mut vec = generic_vec::TypeVec::<i32, [i32; 16]>::new();

let mut spare = vec.spare_capacity_mut();
spare.push(0);
spare.push(2);
drop(spare);
assert_eq!(vec, []);

let mut spare = vec.spare_capacity_mut();
spare.push(0);
spare.push(2);
unsafe { generic_vec::save_spare!(spare, &mut vec) }
assert_eq!(vec, [0, 2]);

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

Reserve enough space for at least additional elements

Panics

May panic or abort if it isn't possible to allocate enough space for additional more elements

pub fn try_reserve(&mut self, additional: usize) -> bool[src]

Try to reserve enough space for at least additional elements, and returns Err(_) if it's not possible to reserve enough space

pub fn truncate(&mut self, len: usize)[src]

Shortens the vector, keeping the first len elements and dropping the rest.

If len is greater than the vector's current length, this has no effect.

Note that this method has no effect on the allocated capacity of the vector.

pub fn grow(&mut self, additional: usize, value: T) where
    T: Clone
[src]

Grows the GenericVec in-place by additional elements.

This method requires T to implement Clone, in order to be able to clone the passed value. If you need more flexibility (or want to rely on Default instead of Clone), use GenericVec::grow_with.

Panic

May panic or reallocate if the collection is full

Panic behavor

If T::clone panics, then all added items will be dropped. This is different from std, where on panic, items will stay in the Vec. This behavior is unstable, and may change in the future.

pub fn grow_with<F>(&mut self, additional: usize, value: F) where
    F: FnMut() -> T, 
[src]

Grows the GenericVec in-place by additional elements.

This method uses a closure to create new values on every push. If you'd rather Clone a given value, use GenericVec::resize. If you want to use the Default trait to generate values, you can pass Default::default as the second argument.

Panic

May panic or reallocate if the collection is full

Panic behavor

If F panics, then all added items will be dropped. This is different from std, where on panic, items will stay in the Vec. This behavior is unstable, and may change in the future.

pub fn resize(&mut self, new_len: usize, value: T) where
    T: Clone
[src]

Resizes the GenericVec in-place so that len is equal to new_len.

If new_len is greater than len, the GenericVec is extended by the difference, with each additional slot filled with value. If new_len is less than len, the GenericVec is simply truncated.

If you know that new_len is larger than len, then use GenericVec::grow

If you know that new_len is less than len, then use GenericVec::truncate

This method requires T to implement Clone, in order to be able to clone the passed value. If you need more flexibility (or want to rely on Default instead of Clone), use GenericVec::resize_with.

Panic

May panic or reallocate if the collection is full

Panic behavor

If F panics, then all added items will be dropped. This is different from std, where on panic, items will stay in the Vec. This behavior is unstable, and may change in the future.

pub fn resize_with<F: FnMut() -> T>(&mut self, new_len: usize, value: F)[src]

Resizes the GenericVec in-place so that len is equal to new_len.

If new_len is greater than len, the GenericVec is extended by the difference, with each additional slot filled with the result of calling the closure f. The return values from f will end up in the GenericVec in the order they have been generated.

If new_len is less than len, the GenericVec is simply truncated.

If you know that new_len is larger than len, then use GenericVec::grow_with

If you know that new_len is less than len, then use GenericVec::truncate

This method uses a closure to create new values on every push. If you'd rather Clone a given value, use GenericVec::resize. If you want to use the Default trait to generate values, you can pass Default::default as the second argument.

Panic

May panic or reallocate if the collection is full

Panic behavor

If F panics, then all added items will be dropped. This is different from std, where on panic, items will stay in the Vec. This behavior is unstable, and may change in the future.

pub fn clear(&mut self)[src]

Clears the vector, removing all values.

Note that this method has no effect on the allocated capacity of the vector.

pub fn push(&mut self, value: T) -> &mut T[src]

Appends an element to the back of a collection.

Panic

May panic or reallocate if the collection is full

pub fn push_array<const N: usize>(&mut self, value: [T; N]) -> &mut [T; N][src]

Appends the array to the back of a collection.

Panic

May panic or reallocate if the collection has less than N elements remaining

pub fn insert(&mut self, index: usize, value: T) -> &mut T[src]

Inserts an element at position index within the vector, shifting all elements after it to the right.

Panics

  • May panic or reallocate if the collection is full
  • Panics if index > len.

pub fn insert_array<const N: usize>(
    &mut self,
    index: usize,
    value: [T; N]
) -> &mut [T; N]
[src]

Inserts the array at position index within the vector, shifting all elements after it to the right.

Panics

  • May panic or reallocate if the collection has less than N elements remaining
  • Panics if index > len.

pub fn pop(&mut self) -> T[src]

Removes the last element from a vector and returns it

Panics

Panics if the collection is empty

pub fn pop_array<const N: usize>(&mut self) -> [T; N][src]

Removes the last N elements from a vector and returns it

Panics

Panics if the collection contains less than N elements in it

pub fn remove(&mut self, index: usize) -> T[src]

Removes and returns the element at position index within the vector, shifting all elements after it to the left.

Panics

Panics if index is out of bounds.

pub fn remove_array<const N: usize>(&mut self, index: usize) -> [T; N][src]

Removes and returns N elements at position index within the vector, shifting all elements after it to the left.

Panics

Panics if index is out of bounds or if index + N > len()

pub fn swap_remove(&mut self, index: usize) -> T[src]

Removes an element from the vector and returns it.

The removed element is replaced by the last element of the vector.

This does not preserve ordering, but is O(1).

Panics

Panics if index is out of bounds.

pub fn try_push(&mut self, value: T) -> Result<&mut T, T>[src]

Tries to append an element to the back of a collection. Returns the Err(value) if the collection is full

Guaranteed to not panic/abort/allocate

pub fn try_push_array<const N: usize>(
    &mut self,
    value: [T; N]
) -> Result<&mut [T; N], [T; N]>
[src]

Tries to append an array to the back of a collection. Returns the Err(value) if the collection doesn't have enough remaining capacity to hold N elements.

Guaranteed to not panic/abort/allocate

pub fn try_insert(&mut self, index: usize, value: T) -> Result<&mut T, T>[src]

Inserts an element at position index within the vector, shifting all elements after it to the right. Returns the Err(value) if the collection is full or index is out of bounds

Guaranteed to not panic/abort/allocate

pub fn try_insert_array<const N: usize>(
    &mut self,
    index: usize,
    value: [T; N]
) -> Result<&mut [T; N], [T; N]>
[src]

Inserts an array at position index within the vector, shifting all elements after it to the right. Returns the Err(value) if the collection doesn't have enough remaining capacity to hold N elements or index is out of bounds

Guaranteed to not panic/abort/allocate

pub fn try_pop(&mut self) -> Option<T>[src]

Removes the last element from a vector and returns it, Returns None if the collection is empty

Guaranteed to not panic/abort/allocate

pub fn try_pop_array<const N: usize>(&mut self) -> Option<[T; N]>[src]

Removes the last N elements from a vector and returns it, Returns None if the collection is has less than N elements

Guaranteed to not panic/abort/allocate

pub fn try_remove(&mut self, index: usize) -> Option<T>[src]

Removes and returns the element at position index within the vector, shifting all elements after it to the left. Returns None if collection is empty or index is out of bounds.

Guaranteed to not panic/abort/allocate

pub fn try_remove_array<const N: usize>(
    &mut self,
    index: usize
) -> Option<[T; N]>
[src]

Removes and returns the element at position index within the vector, shifting all elements after it to the left. Returns None if the collection is has less than N elements or index is out of bounds.

Guaranteed to not panic/abort/allocate

pub fn try_swap_remove(&mut self, index: usize) -> Option<T>[src]

Removes an element from the vector and returns it. Returns None if collection is empty or index is out of bounds.

The removed element is replaced by the last element of the vector.

This does not preserve ordering, but is O(1).

Guaranteed to not panic/abort/allocate

pub unsafe fn push_unchecked(&mut self, value: T) -> &mut T[src]

Appends an element to the back of a collection.

Safety

the collection must not be full

pub unsafe fn push_array_unchecked<const N: usize>(
    &mut self,
    value: [T; N]
) -> &mut [T; N]
[src]

Appends the array to the back of a collection.

Safety

the collection's remaining capacity must be at least N

pub unsafe fn insert_unchecked(&mut self, index: usize, value: T) -> &mut T[src]

Inserts an element at position index within the vector, shifting all elements after it to the right.

Safety

  • the collection is must not be full
  • hte index must be in bounds

pub unsafe fn insert_array_unchecked<const N: usize>(
    &mut self,
    index: usize,
    value: [T; N]
) -> &mut [T; N]
[src]

Inserts an array at position index within the vector, shifting all elements after it to the right.

Safety

  • the collection's remaining capacity must be at least N
  • hte index must be in bounds

pub unsafe fn pop_unchecked(&mut self) -> T[src]

Removes the last element from a vector and returns it

Safety

the collection must not be empty

pub unsafe fn pop_array_unchecked<const N: usize>(&mut self) -> [T; N][src]

Removes the last N elements from a vector and returns it

Safety

The collection must contain at least N elements in it

pub unsafe fn remove_unchecked(&mut self, index: usize) -> T[src]

Removes and returns the element at position index within the vector, shifting all elements after it to the left.

Safety

the collection must not be empty, and index must be in bounds

pub unsafe fn remove_array_unchecked<const N: usize>(
    &mut self,
    index: usize
) -> [T; N]
[src]

Removes and returns the element at position index within the vector, shifting all elements after it to the left.

Safety

the collection must contain at least N elements, and index must be in bounds

pub unsafe fn swap_remove_unchecked(&mut self, index: usize) -> T[src]

Removes an element from the vector and returns it.

The removed element is replaced by the last element of the vector.

This does not preserve ordering, but is O(1).

Safety

the index must be in bounds

pub fn split_off<B>(&mut self, index: usize) -> GenericVec<T, B> where
    B: StorageWithCapacity<T>, 
[src]

Splits the collection into two at the given index.

Returns a newly allocated vector containing the elements in the range [at, len). After the call, the original vector will be left containing the elements [0, at) with its previous capacity unchanged.

assert_eq!(vec, [1, 2, 3]);
assert_eq!(vec2, [4, 5, 6]);
vec.split_off_into(1, &mut vec2);
assert_eq!(vec, [1]);
assert_eq!(vec2, [4, 5, 6, 2, 3]);

pub fn split_off_into<B: ?Sized>(
    &mut self,
    index: usize,
    other: &mut GenericVec<T, B>
) where
    B: Storage<T>, 
[src]

Splits the collection into two at the given index.

Appends the elements from the range [at, len) to other. After the call, the original vector will be left containing the elements [0, at) with its previous capacity unchanged.

assert_eq!(vec, [1, 2, 3]);
assert_eq!(vec2, [4, 5, 6]);
vec.split_off_into(1, &mut vec2);
assert_eq!(vec, [1]);
assert_eq!(vec2, [4, 5, 6, 2, 3]);

pub fn append<B: Storage<T> + ?Sized>(&mut self, other: &mut GenericVec<T, B>)[src]

Moves all the elements of other into Self, leaving other empty.

Does not change the capacity of either collection.

assert_eq!(vec, [1, 2, 3]);
assert_eq!(vec2, [4, 5, 6]);
vec.append(&mut vec2);
assert_eq!(vec, [1, 2, 3, 4, 5, 6]);
assert_eq!(vec2, []);

Panic

May panic or reallocate if the collection is full

pub fn convert<B: StorageWithCapacity<T>>(self) -> GenericVec<T, B> where
    S: Sized
[src]

Convert the backing storage type, and moves all the elements in self to the new vector

pub fn raw_cursor<R>(&mut self, range: R) -> RawCursor<'_, T, S> where
    R: RangeBounds<usize>, 
[src]

Creates a raw cursor that can be used to remove elements in the specified range. Usage of RawCursor is unsafe because it doesn't do any checks. RawCursor is meant to be a low level tool to implement fancier iterators, like GenericVec::drain, GenericVec::drain_filter, or GenericVec::splice.

Panic

Panics if the starting point is greater than the end point or if the end point is greater than the length of the vector.

pub fn cursor<R>(&mut self, range: R) -> Cursor<'_, T, S> where
    R: RangeBounds<usize>, 
[src]

Creates a cursor that can be used to remove elements in the specified range.

Panic

Panics if the starting point is greater than the end point or if the end point is greater than the length of the vector.

pub fn drain<R>(&mut self, range: R) -> Drain<'_, T, S>

Notable traits for Drain<'_, T, S>

impl<T, S: ?Sized + Storage<T>, '_> Iterator for Drain<'_, T, S> type Item = T;
where
    R: RangeBounds<usize>, 
[src]

Creates a draining iterator that removes the specified range in the vector and yields the removed items.

When the iterator is dropped, all elements in the range are removed from the vector, even if the iterator was not fully consumed. If the iterator is not dropped (with mem::forget for example), it is unspecified how many elements are removed.

Panic

Panics if the starting point is greater than the end point or if the end point is greater than the length of the vector.

pub fn drain_filter<R, F>(&mut self, range: R, f: F) -> DrainFilter<'_, T, S, F>

Notable traits for DrainFilter<'_, T, S, F>

impl<T, S: ?Sized, F, '_> Iterator for DrainFilter<'_, T, S, F> where
    S: Storage<T>,
    F: FnMut(&mut T) -> bool
type Item = T;
where
    R: RangeBounds<usize>,
    F: FnMut(&mut T) -> bool
[src]

Creates an iterator which uses a closure to determine if an element should be removed.

If the closure returns true, then the element is removed and yielded. If the closure returns false, the element will remain in the vector and will not be yielded by the iterator.

Panic

Panics if the starting point is greater than the end point or if the end point is greater than the length of the vector.

pub fn splice<R, I>(
    &mut self,
    range: R,
    replace_with: I
) -> Splice<'_, T, S, I::IntoIter>

Notable traits for Splice<'a, T, S, I>

impl<'a, T, S: ?Sized + Storage<T>, I: Iterator<Item = T>> Iterator for Splice<'a, T, S, I> type Item = I::Item;
where
    R: RangeBounds<usize>,
    I: IntoIterator<Item = T>, 
[src]

Creates a splicing iterator that replaces the specified range in the vector with the given replace_with iterator and yields the removed items. replace_with does not need to be the same length as range.

range is removed even if the iterator is not consumed until the end.

It is unspecified how many elements are removed from the vector if the Splice value is leaked.

The input iterator replace_with is only consumed when the Splice value is dropped

Panic

Panics if the starting point is greater than the end point or if the end point is greater than the length of the vector.

pub fn retain<F>(&mut self, f: F) where
    F: FnMut(&mut T) -> bool
[src]

Retains only the elements specified by the predicate.

In other words, remove all elements e such that f(e) returns false. This method operates in place, visiting each element exactly once in the original order, and preserves the order of the retained elements.

pub unsafe fn extend_from_slice_unchecked(&mut self, slice: &[T])[src]

Shallow copies and appends all elements in a slice to the GenericVec.

Safety

  • You must not drop any of the elements in slice
  • There must be at least slice.len() remaining capacity in the vector

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

Clones and appends all elements in a slice to the GenericVec.

Iterates over the slice other, clones each element, and then appends it to this GenericVec. The other vector is traversed in-order.

Note that this function is same as extend except that it is specialized to work with slices instead. If and when Rust gets specialization this function will likely be deprecated (but still available).

Panic behavor

If T::clone panics, then all newly added items will be dropped. This is different from std, where on panic, newly added items will stay in the Vec. This behavior is unstable, and may change in the future.

pub fn clone_from(&mut self, source: &[T]) where
    T: Clone
[src]

Replaces all of the current elements with the ones in the slice

equivalent to the following

vec.clear();
vec.extend_from_slice(&slice);

Panic

May try to panic/reallocate if there is not enough capacity for the slice

pub fn dedup_by<F>(&mut self, same_bucket: F) where
    F: FnMut(&mut T, &mut T) -> bool
[src]

Removes all but the first of consecutive elements in the vector satisfying a given equality relation.

The same_bucket function is passed references to two elements from the vector and must determine if the elements compare equal. The elements are passed in opposite order from their order in the slice, so if same_bucket(a, b) returns true, a is removed.

If the vector is sorted, this removes all duplicates.

pub fn dedup_by_key<F, K>(&mut self, key: F) where
    F: FnMut(&mut T) -> K,
    K: PartialEq
[src]

Removes all but the first of consecutive elements in the vector that resolve to the same key.

If the vector is sorted, this removes all duplicates.

pub fn dedup<F, K>(&mut self) where
    T: PartialEq
[src]

Removes all but the first of consecutive elements in the vector that resolve to the same key.

If the vector is sorted, this removes all duplicates.

Trait Implementations

impl<T, S: ?Sized + Storage<T>> AsMut<[T]> for GenericVec<T, S>[src]

impl<T, S: ?Sized + Storage<T>> AsRef<[T]> for GenericVec<T, S>[src]

impl<T, S: ?Sized + Storage<T>> Borrow<[T]> for GenericVec<T, S>[src]

impl<T, S: ?Sized + Storage<T>> BorrowMut<[T]> for GenericVec<T, S>[src]

impl<T, S: StorageWithCapacity<T>> Clone for GenericVec<T, S> where
    T: Clone
[src]

impl<T, S: ?Sized + Storage<T>> Debug for GenericVec<T, S> where
    T: Debug
[src]

impl<T, S: StorageWithCapacity<T>> Default for GenericVec<T, S>[src]

impl<T, S: ?Sized + Storage<T>> Deref for GenericVec<T, S>[src]

type Target = [T]

The resulting type after dereferencing.

impl<T, S: ?Sized + Storage<T>> DerefMut for GenericVec<T, S>[src]

impl<T, S: ?Sized + Storage<T>> Drop for GenericVec<T, S>[src]

impl<T, S: ?Sized + Storage<T>> Eq for GenericVec<T, S> where
    T: Eq
[src]

impl<'a, T: 'a + Clone, S: ?Sized + Storage<T>> Extend<&'a T> for GenericVec<T, S>[src]

impl<T, S: ?Sized + Storage<T>> Extend<T> for GenericVec<T, S>[src]

impl<T, A: AllocRef> From<GenericVec<T, Heap<T, A>>> for Vec<T, A>[src]

impl<V, T, S: StorageWithCapacity<T>> FromIterator<V> for GenericVec<T, S> where
    Self: Extend<V>, 
[src]

impl<T, S: ?Sized + Storage<T>> Hash for GenericVec<T, S> where
    T: Hash
[src]

impl<T, S: Storage<T> + ?Sized, I> Index<I> for GenericVec<T, S> where
    I: SliceIndex<[T]>, 
[src]

type Output = I::Output

The returned type after indexing.

impl<T, S: Storage<T> + ?Sized, I> IndexMut<I> for GenericVec<T, S> where
    I: SliceIndex<[T]>, 
[src]

impl<T, S: Storage<T>> IntoIterator for GenericVec<T, S>[src]

type IntoIter = IntoIter<T, S>

Which kind of iterator are we turning this into?

type Item = T

The type of the elements being iterated over.

impl<'a, T, S: ?Sized + Storage<T>> IntoIterator for &'a mut GenericVec<T, S>[src]

type IntoIter = IterMut<'a, T>

Which kind of iterator are we turning this into?

type Item = &'a mut T

The type of the elements being iterated over.

impl<'a, T, S: ?Sized + Storage<T>> IntoIterator for &'a GenericVec<T, S>[src]

type IntoIter = Iter<'a, T>

Which kind of iterator are we turning this into?

type Item = &'a T

The type of the elements being iterated over.

impl<T, S: ?Sized + Storage<T>> Ord for GenericVec<T, S> where
    T: Ord
[src]

impl<T, O: ?Sized + AsRef<[T]>, S: ?Sized + Storage<T>> PartialEq<O> for GenericVec<T, S> where
    T: PartialEq
[src]

impl<T, O: ?Sized + AsRef<[T]>, S: ?Sized + Storage<T>> PartialOrd<O> for GenericVec<T, S> where
    T: PartialOrd
[src]

Auto Trait Implementations

impl<T, S: ?Sized> RefUnwindSafe for GenericVec<T, S> where
    S: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, S: ?Sized> Send for GenericVec<T, S> where
    S: Send,
    T: Send

impl<T, S: ?Sized> Sync for GenericVec<T, S> where
    S: Sync,
    T: Sync

impl<T, S: ?Sized> Unpin for GenericVec<T, S> where
    S: Unpin,
    T: Unpin

impl<T, S: ?Sized> UnwindSafe for GenericVec<T, S> where
    S: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.