pub struct FieldDescriptor {
pub name: String,
pub name_hash: u32,
pub encoded_type: u16,
pub class_ref: u16,
pub data_offset: u32,
}Expand description
A field of a reflected type: its name, encoded type and where it lies in an instance.
Fields§
§name: StringThe field’s name, looked up from the reflection table’s strings.
name_hash: u32The name hash as stored: in a document with hashed names (RFL2) the key of the name table, otherwise the name’s offset in the reflection strings.
encoded_type: u16The encoded type as ReSkate keeps it: the stored u16 shifted right by one.
class_ref: u16The type slot of a structure, enumeration, inherited or array-of-structure field (index into Document::types); not meaningful for other types.
data_offset: u32Byte offset of the field from the start of its instance.
Implementations§
Trait Implementations§
Source§impl Clone for FieldDescriptor
impl Clone for FieldDescriptor
Source§impl Debug for FieldDescriptor
impl Debug for FieldDescriptor
impl Eq for FieldDescriptor
Source§impl PartialEq for FieldDescriptor
impl PartialEq for FieldDescriptor
impl StructuralPartialEq for FieldDescriptor
Auto Trait Implementations§
impl Freeze for FieldDescriptor
impl RefUnwindSafe for FieldDescriptor
impl Send for FieldDescriptor
impl Sync for FieldDescriptor
impl Unpin for FieldDescriptor
impl UnsafeUnpin for FieldDescriptor
impl UnwindSafe for FieldDescriptor
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