Enum cpython::buffer::ElementType
source · [−]pub enum ElementType {
SignedInteger {
bytes: usize,
},
UnsignedInteger {
bytes: usize,
},
Bool,
Float {
bytes: usize,
},
Unknown,
}
Variants
SignedInteger
Fields
bytes: usize
UnsignedInteger
Fields
bytes: usize
Bool
Float
Fields
bytes: usize
Unknown
Implementations
sourceimpl ElementType
impl ElementType
pub fn from_format(format: &CStr) -> ElementType
Trait Implementations
sourceimpl Clone for ElementType
impl Clone for ElementType
sourcefn clone(&self) -> ElementType
fn clone(&self) -> ElementType
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl PartialEq<ElementType> for ElementType
impl PartialEq<ElementType> for ElementType
sourcefn eq(&self, other: &ElementType) -> bool
fn eq(&self, other: &ElementType) -> bool
impl Copy for ElementType
impl Eq for ElementType
impl StructuralEq for ElementType
impl StructuralPartialEq for ElementType
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more