Enum pyo3::buffer::ElementType [−][src]
pub enum ElementType { SignedInteger { bytes: usize, }, UnsignedInteger { bytes: usize, }, Bool, Float { bytes: usize, }, Unknown, }
Expand description
Represents the type of a Python buffer element.
Variants
A signed integer type and its width in bytes.
Fields of SignedInteger
bytes: usize
An unsigned integer type and its width in bytes.
Fields of UnsignedInteger
bytes: usize
A boolean type.
A float type and its width in bytes.
Fields of Float
bytes: usize
An unknown type. This may occur when parsing has failed.
Implementations
Determines the ElementType
from a Python struct
module format string.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ElementType
impl Send for ElementType
impl Sync for ElementType
impl Unpin for ElementType
impl UnwindSafe for ElementType
Blanket Implementations
Mutably borrows from an owned value. Read more