#[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: TVMFFIByteArrayThe name of the field
doc: TVMFFIByteArrayThe docstring about the field
metadata: TVMFFIByteArrayThe metadata of the field in JSON string
flags: i64bitmask flags of the field
size: i64The size of the field
alignment: i64The alignment of the field
offset: i64The 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: TVMFFIAnyThe default value of the field, this field hold AnyView, valid when flags set kTVMFFIFieldFlagBitMaskHasDefault
field_static_type_index: i32Records 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