Trait cpython::buffer::Element

source ·
pub unsafe trait Element {
    // Required method
    fn is_compatible_format(format: &CStr) -> bool;
}
Expand description

Trait implemented for possible element types of PyBuffer.

Required Methods§

source

fn is_compatible_format(format: &CStr) -> bool

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Element for f32

source§

impl Element for f64

source§

impl Element for i8

source§

impl Element for i16

source§

impl Element for i32

source§

impl Element for i64

source§

impl Element for isize

source§

impl Element for u8

source§

impl Element for u16

source§

impl Element for u32

source§

impl Element for u64

source§

impl Element for usize

Implementors§