pub enum TypeSize {
Struct {
size_x86: u64,
size_x86_64: u64,
},
String,
NonPtr,
}
Expand description
Used for writing binary data in Array. (To write after the pointer type data)
array_size
=size of the pointer type
*array len
Variants§
Struct
C++ Class size
String
ptr size
NonPtr
No size calculation is required for NonPtr.
This is an option for types other than StringPtr
, CString
, and Struct
.
Trait Implementations§
Source§impl Ord for TypeSize
impl Ord for TypeSize
Source§impl PartialOrd for TypeSize
impl PartialOrd for TypeSize
impl Eq for TypeSize
impl StructuralPartialEq for TypeSize
Auto Trait Implementations§
impl Freeze for TypeSize
impl RefUnwindSafe for TypeSize
impl Send for TypeSize
impl Sync for TypeSize
impl Unpin for TypeSize
impl UnwindSafe for TypeSize
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more