#[repr(C)]pub struct TVMFFIFieldInfo {
pub name: TVMFFIByteArray,
pub doc: TVMFFIByteArray,
pub metadata: TVMFFIByteArray,
pub flags: i64,
pub size: i64,
pub alignment: i64,
pub offset: i64,
pub getter: Option<TVMFFIFieldGetter>,
pub setter: Option<TVMFFIFieldSetter>,
pub default_value: TVMFFIAny,
pub field_static_type_index: i32,
}
Expand description
Information support for optional object reflection
Fields§
§name: TVMFFIByteArray
The name of the field
doc: TVMFFIByteArray
The docstring about the field
metadata: TVMFFIByteArray
The metadata of the field in JSON string
flags: i64
bitmask flags of the field
size: i64
The size of the field
alignment: i64
The alignment of the field
offset: i64
The offset of the field
getter: Option<TVMFFIFieldGetter>
The getter to access the field
setter: Option<TVMFFIFieldSetter>
The setter to access the field The setter is set even if the field is readonly for serialization
default_value: TVMFFIAny
The default value of the field, this field hold AnyView, valid when flags set kTVMFFIFieldFlagBitMaskHasDefault
field_static_type_index: i32
Records the static type kind of the field
Auto Trait Implementations§
impl Freeze for TVMFFIFieldInfo
impl RefUnwindSafe for TVMFFIFieldInfo
impl !Send for TVMFFIFieldInfo
impl !Sync for TVMFFIFieldInfo
impl Unpin for TVMFFIFieldInfo
impl UnwindSafe for TVMFFIFieldInfo
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