postgres_array::array

Trait ArrayIndex

Source
pub trait ArrayIndex {
    // Required method
    fn index<T>(&self, array: &Array<T>) -> i32;
}
Expand description

A trait implemented by types that can index into an Array.

Required Methods§

Source

fn index<T>(&self, array: &Array<T>) -> i32

Calculates the index into the Array’s underlying storage specified by the value of self.

§Panics

Panics if the value of self does not correspond to an in-bounds element of the Array.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ArrayIndex for (i32, i32)

Source§

fn index<T>(&self, array: &Array<T>) -> i32

Source§

impl ArrayIndex for (i32, i32, i32)

Source§

fn index<T>(&self, array: &Array<T>) -> i32

Source§

impl ArrayIndex for (i32, i32, i32, i32)

Source§

fn index<T>(&self, array: &Array<T>) -> i32

Source§

impl ArrayIndex for (i32, i32, i32, i32, i32)

Source§

fn index<T>(&self, array: &Array<T>) -> i32

Source§

impl ArrayIndex for (i32, i32, i32, i32, i32, i32)

Source§

fn index<T>(&self, array: &Array<T>) -> i32

Source§

impl ArrayIndex for (i32, i32, i32, i32, i32, i32, i32)

Source§

fn index<T>(&self, array: &Array<T>) -> i32

Source§

impl ArrayIndex for (i32, i32, i32, i32, i32, i32, i32, i32)

Source§

fn index<T>(&self, array: &Array<T>) -> i32

Source§

impl ArrayIndex for (i32, i32, i32, i32, i32, i32, i32, i32, i32)

Source§

fn index<T>(&self, array: &Array<T>) -> i32

Source§

impl ArrayIndex for (i32,)

Source§

fn index<T>(&self, array: &Array<T>) -> i32

Source§

impl ArrayIndex for i32

Source§

fn index<T>(&self, array: &Array<T>) -> i32

Source§

impl<'a> ArrayIndex for &'a [i32]

Source§

fn index<T>(&self, array: &Array<T>) -> i32

Implementors§