value_trait::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§