Struct zerogc::epsilon::vec::EpsilonRawVec [−][src]
pub struct EpsilonRawVec<'gc, T> { /* fields omitted */ }
Expand description
The raw representation of a vector in the “epsilon” collector
Implementations
pub fn iter(&self) -> RawVecIter<'gc, T, Self>ⓘNotable traits for RawVecIter<'gc, T, V>impl<'gc, T: GcSafe<'gc, V::Id> + Copy, V: GcRawVec<'gc, T>> Iterator for RawVecIter<'gc, T, V> type Item = T;
where
T: Copy,
pub fn iter(&self) -> RawVecIter<'gc, T, Self>ⓘNotable traits for RawVecIter<'gc, T, V>impl<'gc, T: GcSafe<'gc, V::Id> + Copy, V: GcRawVec<'gc, T>> Iterator for RawVecIter<'gc, T, V> type Item = T;
where
T: Copy,
impl<'gc, T: GcSafe<'gc, V::Id> + Copy, V: GcRawVec<'gc, T>> Iterator for RawVecIter<'gc, T, V> type Item = T;
See GcRawVec::iter
See IGcVec::len
See IGcVec::set_len
See IGcVec::capacity
See IGcVec::as_ptr
See IGcVec::context
See IGcVec::replace
See IGcVec::set
See IGcVec::push
See IGcVec::pop
See IGcVec::reserve
See IGcVec::is_empty
See IGcVec::new_in
See IGcVec::from_vec
Trait Implementations
Extends a collection with the contents of an iterator. Read more
extend_one
)Extends a collection with exactly one element.
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Steal ownership of this vector, converting it into a [GcArray]. Read more
fn iter(&self) -> RawVecIter<'gc, T, Self>ⓘNotable traits for RawVecIter<'gc, T, V>impl<'gc, T: GcSafe<'gc, V::Id> + Copy, V: GcRawVec<'gc, T>> Iterator for RawVecIter<'gc, T, V> type Item = T;
where
T: Copy,
fn iter(&self) -> RawVecIter<'gc, T, Self>ⓘNotable traits for RawVecIter<'gc, T, V>impl<'gc, T: GcSafe<'gc, V::Id> + Copy, V: GcRawVec<'gc, T>> Iterator for RawVecIter<'gc, T, V> type Item = T;
where
T: Copy,
impl<'gc, T: GcSafe<'gc, V::Id> + Copy, V: GcRawVec<'gc, T>> Iterator for RawVecIter<'gc, T, V> type Item = T;
Iterate over the elements of the vectors Read more
impl<'gc, 'new_gc, T: GcSafe<'gc, EpsilonCollectorId>> GcRebrand<'new_gc, EpsilonCollectorId> for EpsilonRawVec<'gc, T> where
T: GcRebrand<'new_gc, EpsilonCollectorId>,
T::Branded: Sized,
impl<'gc, 'new_gc, T: GcSafe<'gc, EpsilonCollectorId>> GcRebrand<'new_gc, EpsilonCollectorId> for EpsilonRawVec<'gc, T> where
T: GcRebrand<'new_gc, EpsilonCollectorId>,
T::Branded: Sized,
type Branded = EpsilonRawVec<'new_gc, T::Branded>
type Branded = EpsilonRawVec<'new_gc, T::Branded>
This type with all garbage collected lifetimes
changed to 'new_gc
Read more
impl<'gc, T: GcSafe<'gc, EpsilonCollectorId>> GcSafe<'gc, EpsilonCollectorId> for EpsilonRawVec<'gc, T> where
T: GcSafe<'gc, EpsilonCollectorId>,
T: Trace,
impl<'gc, T: GcSafe<'gc, EpsilonCollectorId>> GcSafe<'gc, EpsilonCollectorId> for EpsilonRawVec<'gc, T> where
T: GcSafe<'gc, EpsilonCollectorId>,
T: Trace,
type Id = EpsilonCollectorId
type Id = EpsilonCollectorId
The id of the collector
Allocate a new vector with the specified capacity, using the specified context. Read more
The total amount of space that is available without needing reallocation. Read more
Attempt to reallocate the vector in-place, without moving the underlying pointer. Read more
Copy the specified elements into a new vector, allocating it in the specified context Read more
fn copy_from_slice(
src: &[T],
ctx: &'gc <Self::Id as CollectorId>::Context
) -> Self where
T: Copy,
fn copy_from_slice(
src: &[T],
ctx: &'gc <Self::Id as CollectorId>::Context
) -> Self where
T: Copy,
Copy the specified elements into a new vector, allocating it in the specified context Read more
Allocate a new vector inside the specified context
Pop an element of the end of the vector,
returning None
if empty. Read more
Removes an element from the vector and returns it. Read more
Extend the vector with elements copied from the specified slice
Get the item at the specified index,
or None
if it is out of bounds. Read more
Replace the item at the specified index, returning the old value. Read more
Get a mutable pointer to the vector’s underlying data. Read more
impl<'gc, T: GcSafe<'gc, EpsilonCollectorId>> TrustedDrop for EpsilonRawVec<'gc, T> where
T: TrustedDrop,
Auto Trait Implementations
impl<'gc, T> !RefUnwindSafe for EpsilonRawVec<'gc, T>
impl<'gc, T> !Send for EpsilonRawVec<'gc, T>
impl<'gc, T> !Sync for EpsilonRawVec<'gc, T>
impl<'gc, T> Unpin for EpsilonRawVec<'gc, T>
impl<'gc, T> !UnwindSafe for EpsilonRawVec<'gc, T>
Blanket Implementations
Mutably borrows from an owned value. Read more