#[repr(C)]pub struct FolditPluginParamValue {
pub tag: FolditPluginParamTag,
pub padding: u32,
pub int_value: i32,
pub float_value: f32,
pub bool_value: u8,
pub padding2: [u8; 7],
pub string_data: *const u8,
pub string_len: usize,
pub vec3_value: FolditPluginVec3,
}Expand description
Mirror of proto::ParamValue. Tagged struct with all variant
fields inlined (avoids repr(C) union portability concerns and
keeps cbindgen happy).
Fields§
§tag: FolditPluginParamTagDiscriminator selecting which payload field is valid.
padding: u32Padding for 8-alignment.
int_value: i32Valid when tag == Int.
float_value: f32Valid when tag == Float.
bool_value: u8Valid when tag == Bool (0 / 1).
padding2: [u8; 7]Padding to keep the following pointer 8-aligned.
string_data: *const u8UTF-8 string body when tag == String. Borrowed; not
null-terminated.
string_len: usizeByte length of string_data.
vec3_value: FolditPluginVec3Valid when tag == Vec3.
Trait Implementations§
Auto Trait Implementations§
impl !Send for FolditPluginParamValue
impl !Sync for FolditPluginParamValue
impl Freeze for FolditPluginParamValue
impl RefUnwindSafe for FolditPluginParamValue
impl Unpin for FolditPluginParamValue
impl UnsafeUnpin for FolditPluginParamValue
impl UnwindSafe for FolditPluginParamValue
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