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§
sourcefn is_compatible_format(format: &CStr) -> bool
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.