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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy