Enum cpython::buffer::ElementType
source · pub enum ElementType {
SignedInteger {
bytes: usize,
},
UnsignedInteger {
bytes: usize,
},
Bool,
Float {
bytes: usize,
},
Unknown,
}
Variants§
Implementations§
source§impl ElementType
impl ElementType
pub fn from_format(format: &CStr) -> ElementType
Trait Implementations§
source§impl Clone for ElementType
impl Clone for ElementType
source§fn clone(&self) -> ElementType
fn clone(&self) -> ElementType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq for ElementType
impl PartialEq for ElementType
source§fn eq(&self, other: &ElementType) -> bool
fn eq(&self, other: &ElementType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ElementType
impl Eq for ElementType
impl StructuralPartialEq for ElementType
Auto Trait Implementations§
impl Freeze for ElementType
impl RefUnwindSafe for ElementType
impl Send for ElementType
impl Sync for ElementType
impl Unpin for ElementType
impl UnwindSafe for ElementType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more