# Trait flechasdb::slice::AsSlice

source ·

    pub trait AsSlice<T> {
        // Required method
        fn as_slice(&self) -> &[T];
    }

Expand description

Represents a type that can be referenced as a slice.

## Required Methods§

source

#### fn as_slice(&self) -> &[T]

Returns a reference to the underlying slice.

## Implementations on Foreign Types§

source§

### impl<T> AsSlice<T> for &[T]

source§

#### fn as_slice(&self) -> &[T]

source§

### impl<T> AsSlice<T> for [T]

source§

#### fn as_slice(&self) -> &[T]

source§

### impl<T> AsSlice<T> for Vec<T>

source§

#### fn as_slice(&self) -> &[T]

## Implementors§