[−][src]Struct arc_buffer::buf::ArcBuffer
Implementations
impl<T> ArcBuffer<T>
[src]
pub fn new() -> Self
[src]
pub fn with_capacity(cap: usize) -> Self
[src]
pub fn len(&self) -> usize
[src]
pub unsafe fn copy_from_ptr_unsafe(src: *const T, len: usize) -> Self
[src]
impl<T> ArcBuffer<MaybeUninit<T>>
[src]
pub fn new_uninit(len: usize) -> Self
[src]
pub unsafe fn assume_init(self) -> ArcBuffer<T>
[src]
impl<T: Copy> ArcBuffer<T>
[src]
pub fn copy_from_slice(src: &[T]) -> Self
[src]
pub fn copy_to_new(&self) -> Self
[src]
pub fn filled(value: T, len: usize) -> Self
[src]
pub fn make_mut(&mut self) -> &mut [T]
[src]
pub fn extend_from_slice(&mut self, src: &[T])
[src]
pub fn push(&mut self, value: T)
[src]
pub fn pop(&mut self) -> Option<T>
[src]
pub fn insert(&mut self, index: usize, value: T)
[src]
pub fn remove(&mut self, index: usize) -> Option<T>
[src]
pub fn swap_remove(&mut self, index: usize) -> Option<T>
[src]
Trait Implementations
impl<T: Copy> AsMut<[T]> for ArcBuffer<T>
[src]
impl<T> AsRef<[T]> for ArcBuffer<T>
[src]
impl<T> Clone for ArcBuffer<T>
[src]
pub fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Debug for ArcBuffer<T> where
[T]: Debug,
[src]
[T]: Debug,
impl<T> Deref for ArcBuffer<T>
[src]
impl<T: Copy> DerefMut for ArcBuffer<T>
[src]
impl<T> Display for ArcBuffer<T> where
[T]: Display,
[src]
[T]: Display,
impl<T> Drop for ArcBuffer<T>
[src]
impl<T> Eq for ArcBuffer<T> where
[T]: Eq,
[src]
[T]: Eq,
impl<T: Copy> Extend<T> for ArcBuffer<T>
[src]
pub fn extend<I: IntoIterator<Item = T>>(&mut self, it: I)
[src]
pub fn extend_one(&mut self, item: A)
[src]
pub fn extend_reserve(&mut self, additional: usize)
[src]
impl<T> From<Box<[T], Global>> for ArcBuffer<T>
[src]
impl<T> From<Vec<T, Global>> for ArcBuffer<T>
[src]
impl<T> FromIterator<T> for ArcBuffer<T>
[src]
pub fn from_iter<I: IntoIterator<Item = T>>(it: I) -> Self
[src]
impl<T, S: SliceIndex<[T]>> Index<S> for ArcBuffer<T>
[src]
type Output = S::Output
The returned type after indexing.
pub fn index(&self, i: S) -> &Self::Output
[src]
impl<T: Copy, S: SliceIndex<[T]>> IndexMut<S> for ArcBuffer<T>
[src]
impl<T: Copy> IntoIterator for ArcBuffer<T>
[src]
type Item = T
The type of the elements being iterated over.
type IntoIter = IntoIter<T>
Which kind of iterator are we turning this into?
pub fn into_iter(self) -> Self::IntoIter
[src]
impl<'a, T> IntoIterator for &'a ArcBuffer<T>
[src]
type Item = &'a T
The type of the elements being iterated over.
type IntoIter = Iter<'a, T>
Which kind of iterator are we turning this into?
pub fn into_iter(self) -> Self::IntoIter
[src]
impl<'a, T: Copy> IntoIterator for &'a mut ArcBuffer<T>
[src]
type Item = &'a mut T
The type of the elements being iterated over.
type IntoIter = IterMut<'a, T>
Which kind of iterator are we turning this into?
pub fn into_iter(self) -> Self::IntoIter
[src]
impl<T> Ord for ArcBuffer<T> where
[T]: Ord,
[src]
[T]: Ord,
pub fn cmp(&self, rhs: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<T, S: AsRef<[T]>> PartialEq<S> for ArcBuffer<T> where
[T]: PartialEq,
[src]
[T]: PartialEq,
impl<T, S: AsRef<[T]>> PartialOrd<S> for ArcBuffer<T> where
[T]: PartialOrd,
[src]
[T]: PartialOrd,
pub fn partial_cmp(&self, rhs: &S) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T> Send for ArcBuffer<T>
[src]
impl<T> Sync for ArcBuffer<T>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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 = Infallible
The type returned in the event of a conversion error.
pub 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>,