Enum pyo3::buffer::ElementType [−][src]
pub enum ElementType {
SignedInteger {
bytes: usize,
},
UnsignedInteger {
bytes: usize,
},
Bool,
Float {
bytes: usize,
},
Unknown,
}This is supported on non-
Py_LIMITED_API only.Expand description
Represents the type of a Python buffer element.
Variants
A signed integer type and its width in bytes.
Fields of SignedInteger
bytes: usizeAn unsigned integer type and its width in bytes.
Fields of UnsignedInteger
bytes: usizeA boolean type.
A float type and its width in bytes.
Fields of Float
bytes: usizeAn 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
Compare self to key and return true if they are equal.