Struct zerogc_simple::layout::SimpleVecRepr[][src]

#[repr(C)]
pub struct SimpleVecRepr<T: GcSafe> { /* fields omitted */ }
Expand description

The raw representation of a vector in the simple collector

NOTE: Length and capacity are stored implicitly in the GcVecHeader

Trait Implementations

This type with all garbage collected lifetimes changed to 'static (or erased) Read more

This type with all garbage collected lifetimes changed to 'new_gc Read more

Right now, there is no stable API for in-place re-allocation

The layout of the underlying element type

The length of the vector. Read more

Set the length of the vector. Read more

The total number of elements that are available

A pointer to the underlying memory Read more

Attempt to reallocate the vector in-place, without moving the underlying pointer. Read more

Whether this type needs to be traced by the garbage collector. Read more

If this type needs a destructor run. Read more

Visit each field in this type Read more

Visit this object, assuming its already inside a GC pointer. Read more

Visit an immutable reference to this type Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.