Skip to main content

IncludesFormat

Trait IncludesFormat 

Source
pub trait IncludesFormat {
    const ASSUME_U8: bool;
}
Available on Py_3_11 or non-Py_LIMITED_API only.
Expand description

Marker trait for buffer flags which have requested format information.

Required Associated Constants§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<const SHAPE: bool, const STRIDE: bool, const INDIRECT: bool, const WRITABLE: bool, const CONTIGUITY: u8> IncludesFormat for PyBufferFlags<true, SHAPE, STRIDE, INDIRECT, WRITABLE, CONTIGUITY>

Source§

const ASSUME_U8: bool = false

Source§

impl<const WRITABLE: bool> IncludesFormat for PyBufferFlags<false, false, false, false, WRITABLE, { CONTIGUITY_UNDEFINED }>

Source§

const ASSUME_U8: bool = true

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here