[−][src]Struct elastic_array::ElasticArray512
Methods
impl<T> ElasticArray512<T> where
T: Copy,
[src]
T: Copy,
pub fn new() -> ElasticArray512<T>
[src]
pub fn from_slice(slice: &[T]) -> ElasticArray512<T>
[src]
pub fn from_vec(vec: Vec<T>) -> ElasticArray512<T>
[src]
pub fn push(&mut self, e: T)
[src]
pub fn pop(&mut self) -> Option<T>
[src]
pub fn clear(&mut self)
[src]
pub fn append_slice(&mut self, elements: &[T])
[src]
pub fn into_vec(self) -> Vec<T>
[src]
pub fn insert_slice(&mut self, index: usize, elements: &[T])
[src]
Trait Implementations
impl<T> AsRef<[T]> for ElasticArray512<T>
[src]
impl<'a, T: 'a + Copy> From<&'a [T]> for ElasticArray512<T>
[src]
impl<T> Clone for ElasticArray512<T> where
T: Copy,
[src]
T: Copy,
fn clone(&self) -> ElasticArray512<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Default for ElasticArray512<T> where
T: Copy,
[src]
T: Copy,
fn default() -> ElasticArray512<T>
[src]
impl<T> Eq for ElasticArray512<T> where
T: Eq,
[src]
T: Eq,
impl<T> Ord for ElasticArray512<T> where
T: Ord,
[src]
T: Ord,
fn cmp(&self, other: &Self) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<T, U> PartialEq<U> for ElasticArray512<T> where
T: PartialEq,
U: Deref<Target = [T]>,
[src]
T: PartialEq,
U: Deref<Target = [T]>,
impl<T, U> PartialOrd<U> for ElasticArray512<T> where
T: PartialOrd,
U: Deref<Target = [T]>,
[src]
T: PartialOrd,
U: Deref<Target = [T]>,
fn partial_cmp(&self, other: &U) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T> Deref for ElasticArray512<T>
[src]
impl<T> DerefMut for ElasticArray512<T>
[src]
impl<T> Debug for ElasticArray512<T> where
T: Debug,
[src]
T: Debug,
impl<T> Hash for ElasticArray512<T> where
T: Hash,
[src]
T: Hash,
fn hash<H>(&self, state: &mut H) where
H: Hasher,
[src]
H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T> Borrow<[T]> for ElasticArray512<T>
[src]
impl<T> HeapSizeOf for ElasticArray512<T> where
T: HeapSizeOf,
[src]
T: HeapSizeOf,
fn heap_size_of_children(&self) -> usize
[src]
Auto Trait Implementations
impl<T> Send for ElasticArray512<T> where
T: Send,
T: Send,
impl<T> Sync for ElasticArray512<T> where
T: Sync,
T: Sync,
impl<T> Unpin for ElasticArray512<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for ElasticArray512<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for ElasticArray512<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,