pub enum FieldType {
Scalar {
size: usize,
},
MutableScalar {
size: usize,
},
PtrToMemory {
is_32_bit: bool,
id: MemoryId,
buffer_size: usize,
},
NullablePtrToMemory {
is_32_bit: bool,
id: MemoryId,
buffer_size: usize,
},
PtrToArray {
is_32_bit: bool,
id: MemoryId,
},
PtrToEndArray {
is_32_bit: bool,
id: MemoryId,
},
}Expand description
The type of a filed in a strcut pointed by Type::PtrToStruct.
Variants§
Scalar
Read-only scalar value.
MutableScalar
Mutable scalar value.
PtrToMemory
A pointer to the kernel memory. The full buffer is buffer_size bytes long.
NullablePtrToMemory
A nullable pointer to the kernel memory. The full buffer is buffer_size bytes long.
PtrToArray
A pointer to the kernel memory. The full buffer size is determined by an instance of
PtrToEndArray with the same id.
PtrToEndArray
A pointer to the kernel memory that represents the first non accessible byte of a
PtrToArray with the same id.
Trait Implementations§
impl StructuralPartialEq for FieldType
Auto Trait Implementations§
impl Freeze for FieldType
impl RefUnwindSafe for FieldType
impl Send for FieldType
impl Sync for FieldType
impl Unpin for FieldType
impl UnwindSafe for FieldType
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