# pyo3::buffer::Element - Rust
Trait implemented for possible element types of `PyBuffer`.
Keywords: rust, rustlang, rust-lang, Element

# Trait pyo3::buffer::Element [−] [src]

    pub unsafe trait Element: Copy {
        fn is_compatible_format(format: &CStr) -> bool;
    }

Trait implemented for possible element types of `PyBuffer`.

## Required methods

### `fn is_compatible_format(format: &CStr) -> bool` [src]

Gets whether the element specified in the format string is potentially compatible. Alignment and size are checked separately from this function.

Loading content...

## Implementations on Foreign Types

### `impl Element for u8` [src]

#### `fn is_compatible_format(format: &CStr) -> bool` [src]

### `impl Element for u16` [src]

#### `fn is_compatible_format(format: &CStr) -> bool` [src]

### `impl Element for u32` [src]

#### `fn is_compatible_format(format: &CStr) -> bool` [src]

### `impl Element for u64` [src]

#### `fn is_compatible_format(format: &CStr) -> bool` [src]

### `impl Element for usize` [src]

#### `fn is_compatible_format(format: &CStr) -> bool` [src]

### `impl Element for i8` [src]

#### `fn is_compatible_format(format: &CStr) -> bool` [src]

### `impl Element for i16` [src]

#### `fn is_compatible_format(format: &CStr) -> bool` [src]

### `impl Element for i32` [src]

#### `fn is_compatible_format(format: &CStr) -> bool` [src]

### `impl Element for i64` [src]

#### `fn is_compatible_format(format: &CStr) -> bool` [src]

### `impl Element for isize` [src]

#### `fn is_compatible_format(format: &CStr) -> bool` [src]

### `impl Element for f32` [src]

#### `fn is_compatible_format(format: &CStr) -> bool` [src]

### `impl Element for f64` [src]

#### `fn is_compatible_format(format: &CStr) -> bool` [src]

Loading content...

## Implementors

Loading content...