pub enum ArgValue {
Null,
Boolean(bool),
Signed32(i32),
Unsigned32(u32),
Signed64(i64),
Unsigned64(u64),
Double(f64),
String(FlyStr),
Pointer(u64),
KernelObj(u64),
}
Variants§
Null
Boolean(bool)
Signed32(i32)
Unsigned32(u32)
Signed64(i64)
Unsigned64(u64)
Double(f64)
String(FlyStr)
Pointer(u64)
KernelObj(u64)
Implementations§
Source§impl ArgValue
impl ArgValue
pub fn is_null(&self) -> bool
pub fn boolean(&self) -> Option<bool>
pub fn signed_32(&self) -> Option<i32>
pub fn unsigned_32(&self) -> Option<u32>
pub fn signed_64(&self) -> Option<i64>
pub fn unsigned_64(&self) -> Option<u64>
pub fn double(&self) -> Option<f64>
pub fn string(&self) -> Option<&str>
pub fn pointer(&self) -> Option<u64>
pub fn kernel_obj(&self) -> Option<u64>
Trait Implementations§
impl StructuralPartialEq for ArgValue
Auto Trait Implementations§
impl Freeze for ArgValue
impl RefUnwindSafe for ArgValue
impl Send for ArgValue
impl Sync for ArgValue
impl Unpin for ArgValue
impl UnwindSafe for ArgValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)