Skip to main content

PyBufferFlagsType

Trait PyBufferFlagsType 

Source
pub trait PyBufferFlagsType: Sealed {
    const CONTIGUITY: u8;
}
Expand description

Trait implemented by all PyBufferFlags instantiations.

Required Associated Constants§

Source

const CONTIGUITY: u8

The contiguity requirement encoded by these flags.

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.

Implementors§

Source§

impl<const FORMAT: bool, const SHAPE: bool, const STRIDE: bool, const WRITABLE: bool, const CONTIGUITY_REQ: u8> PyBufferFlagsType for PyBufferFlags<FORMAT, SHAPE, STRIDE, WRITABLE, CONTIGUITY_REQ>

Source§

const CONTIGUITY: u8 = CONTIGUITY_REQ