Trait postgres_array::Array
[-] [+]
[src]
pub trait Array<T> { fn dimension_info<'a>(&'a self) -> &'a [DimensionInfo]; fn slice<'a>(&'a self, idx: isize) -> ArraySlice<'a, T>; fn get<'a>(&'a self, idx: isize) -> &'a T; }
Specifies methods that can be performed on multi-dimensional arrays
Required Methods
fn dimension_info<'a>(&'a self) -> &'a [DimensionInfo]
Returns information about the dimensions of this array
fn slice<'a>(&'a self, idx: isize) -> ArraySlice<'a, T>
Slices into this array, returning an immutable view of a subarray.
Failure
Fails if the array is one-dimensional or the index is out of bounds.
fn get<'a>(&'a self, idx: isize) -> &'a T
Retrieves an immutable reference to a value in this array.
Failure
Fails if the array is multi-dimensional or the index is out of bounds.
Implementors
impl<T> Array<T> for ArrayBase<T>
impl<'parent, T> Array<T> for ArraySlice<'parent, T>
impl<'parent, T> Array<T> for MutArraySlice<'parent, T>