pub enum Arg {
Int(i32),
Uint(u32),
Fixed(Fixed),
String(String),
Object(ObjectId),
NewId(NewId),
Array(Array),
Handle(Handle),
}
Variants§
Int(i32)
Uint(u32)
Fixed(Fixed)
String(String)
Object(ObjectId)
NewId(NewId)
Array(Array)
Handle(Handle)
Implementations§
Source§impl Arg
impl Arg
pub fn unwrap_int(self) -> i32
pub fn unwrap_uint(self) -> u32
pub fn unwrap_fixed(self) -> Fixed
pub fn unwrap_object(self) -> ObjectId
pub fn unwrap_new_id(self) -> ObjectId
pub fn unwrap_string(self) -> String
pub fn unwrap_array(self) -> Array
pub fn unwrap_handle(self) -> Handle
Source§impl Arg
impl Arg
pub fn as_int(self) -> Result<i32, MismatchedArgKind>
pub fn as_uint(self) -> Result<u32, MismatchedArgKind>
pub fn as_fixed(self) -> Result<Fixed, MismatchedArgKind>
pub fn as_object(self) -> Result<ObjectId, MismatchedArgKind>
pub fn as_new_id(self) -> Result<ObjectId, MismatchedArgKind>
pub fn as_string(self) -> Result<String, MismatchedArgKind>
pub fn as_array(self) -> Result<Array, MismatchedArgKind>
pub fn as_handle(self) -> Result<Handle, MismatchedArgKind>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Arg
impl RefUnwindSafe for Arg
impl Send for Arg
impl Sync for Arg
impl Unpin for Arg
impl UnwindSafe for Arg
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