Trait postgres_array::MutableArray [-] [+] [src]

pub trait MutableArray<T>: Array<T> {
    fn slice_mut<'a>(&'a mut self, idx: isize) -> MutArraySlice<'a, T>;
    fn get_mut<'a>(&'a mut self, idx: isize) -> &'a mut T;
}

Specifies methods that can be performed on mutable multi-dimensional arrays

Required Methods

fn slice_mut<'a>(&'a mut self, idx: isize) -> MutArraySlice<'a, T>

Slices into this array, returning a mutable view of a subarray.

Failure

Fails if the array is one-dimensional or the index is out of bounds.

fn get_mut<'a>(&'a mut self, idx: isize) -> &'a mut T

Retrieves a mutable reference to a value in this array.

Failure

Fails if the array is multi-dimensional or the index is out of bounds.

Implementors