Struct expry::memorypool::ScopedArrayBuilder
source · pub struct ScopedArrayBuilder<'a, 'c, T> { /* private fields */ }
Implementations§
source§impl<'a, 'c, T> ScopedArrayBuilder<'a, 'c, T>where
T: Unpin,
impl<'a, 'c, T> ScopedArrayBuilder<'a, 'c, T>where
T: Unpin,
pub fn new(scope: &'a mut MemoryScope<'c>) -> Self
pub fn with_capacity(scope: &'a mut MemoryScope<'c>, size: usize) -> Self
pub fn with_size(scope: &'a mut MemoryScope<'c>, size: usize, value: T) -> Selfwhere
T: Clone,
pub fn as_slice(&self) -> &[T]
pub fn as_mut_slice(&mut self) -> &mut [T]
pub fn extend(&mut self, extra: usize, value: T)where
T: Clone,
pub fn build<'b>(self) -> &'b mut [T]where
T: 'b,
'c: 'b,
pub fn clear(&mut self)
pub fn insert(&mut self, pos: usize, v: T)
pub fn push(&mut self, v: T)
pub fn extend_from_slice(&mut self, v: &[T])where
T: Copy,
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'c, T> RefUnwindSafe for ScopedArrayBuilder<'a, 'c, T>where
T: RefUnwindSafe,
impl<'a, 'c, T> !Send for ScopedArrayBuilder<'a, 'c, T>
impl<'a, 'c, T> !Sync for ScopedArrayBuilder<'a, 'c, T>
impl<'a, 'c, T> Unpin for ScopedArrayBuilder<'a, 'c, T>
impl<'a, 'c, T> !UnwindSafe for ScopedArrayBuilder<'a, 'c, T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more