simd_json::prelude

Trait ArrayMut

Source
pub trait ArrayMut {
    type Element;

    // Required methods
    fn pop(&mut self) -> Option<Self::Element>;
    fn push(&mut self, e: Self::Element);
}
Expand description

Mutability functions for a value array

Required Associated Types§

Source

type Element

Elements of the array

Required Methods§

Source

fn pop(&mut self) -> Option<Self::Element>

Returns the last element of the array or None

Source

fn push(&mut self, e: Self::Element)

Appends e to the end of the Array

Implementations on Foreign Types§

Source§

impl<T> ArrayMut for Vec<T>

Source§

type Element = T

Source§

fn pop(&mut self) -> Option<T>

Source§

fn push(&mut self, e: T)

Implementors§