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

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

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]

impl Element for u16[src]

impl Element for u32[src]

impl Element for u64[src]

impl Element for usize[src]

impl Element for i8[src]

impl Element for i16[src]

impl Element for i32[src]

impl Element for i64[src]

impl Element for isize[src]

impl Element for f32[src]

impl Element for f64[src]

Loading content...

Implementors

Loading content...