pub struct VectorStorage {
pub elements: RefCell<Vec<Value>>,
pub frozen: RefCell<bool>,
}Expand description
Growable vector storage. Length, capacity, and elements all belong to the shared storage, so growth stays visible through every alias.
Fields§
§elements: RefCell<Vec<Value>>§frozen: RefCell<bool>Set by freeze(), which consumes uniquely owned storage.
Implementations§
Trait Implementations§
Source§impl Debug for VectorStorage
impl Debug for VectorStorage
Source§impl Default for VectorStorage
impl Default for VectorStorage
Source§fn default() -> VectorStorage
fn default() -> VectorStorage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for VectorStorage
impl !RefUnwindSafe for VectorStorage
impl !Send for VectorStorage
impl !Sync for VectorStorage
impl !UnwindSafe for VectorStorage
impl Unpin for VectorStorage
impl UnsafeUnpin for VectorStorage
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