pub struct AnyVecRef<'a, T: 'static, M: MemBuilder + 'a>(/* private fields */);
Expand description
Typed view to &AnyVec
.
You can get it from AnyVec::downcast_ref
.
Methods from Deref<Target = AnyVecTyped<'a, T, M>>§
pub fn iter(&self) -> Iter<'a, T>
pub fn at(&self, index: usize) -> &'a T
pub fn get(&self, index: usize) -> Option<&'a T>
pub unsafe fn get_unchecked(&self, index: usize) -> &'a T
pub fn as_ptr(&self) -> *const T
pub fn as_slice(&self) -> &'a [T]
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn capacity(&self) -> usize
Trait Implementations§
source§impl<'a, T: 'static, M: MemBuilder + 'a> Clone for AnyVecRef<'a, T, M>
impl<'a, T: 'static, M: MemBuilder + 'a> Clone for AnyVecRef<'a, T, M>
source§impl<'a, T: 'static, M: MemBuilder + 'a> Deref for AnyVecRef<'a, T, M>
impl<'a, T: 'static, M: MemBuilder + 'a> Deref for AnyVecRef<'a, T, M>
source§impl<'a, T: 'static, M: MemBuilder + 'a> IntoIterator for AnyVecRef<'a, T, M>
impl<'a, T: 'static, M: MemBuilder + 'a> IntoIterator for AnyVecRef<'a, T, M>
Auto Trait Implementations§
impl<'a, T, M> Freeze for AnyVecRef<'a, T, M>
impl<'a, T, M> RefUnwindSafe for AnyVecRef<'a, T, M>
impl<'a, T, M> Send for AnyVecRef<'a, T, M>
impl<'a, T, M> Sync for AnyVecRef<'a, T, M>
impl<'a, T, M> Unpin for AnyVecRef<'a, T, M>
impl<'a, T, M> !UnwindSafe for AnyVecRef<'a, T, M>
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