pub enum Value {
Bool(bool),
I32(i32),
I64(i64),
F32(f32),
F64(f64),
Object(*mut c_void),
}Expand description
A typed Mono method argument.
Use this with crate::MonoMethod::invoke_with to pass arguments without manually building
pointer arrays. The caller is still responsible for matching the argument types to the
method’s actual signature - Mono does not validate types at the call site.
Variants§
Bool(bool)
I32(i32)
I64(i64)
F32(f32)
F64(f64)
Object(*mut c_void)
A managed object or boxed value type pointer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl !Send for Value
impl !Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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