#[repr(u8)]
pub enum ArgType {
Show 18 variants
Array,
Variant,
Boolean,
Invalid,
String,
DictEntry,
Byte,
Int16,
UInt16,
Int32,
UInt32,
Int64,
UInt64,
Double,
UnixFd,
Struct,
ObjectPath,
Signature,
}
Expand description
Type of Argument
use this to figure out, e g, which type of argument is at the current position of Iter.
Variants
Array
Dicts are Arrays of dict entries, so Dict types will have Array as ArgType.
Variant
Variant
Boolean
bool
Invalid
Invalid arg type - this is also the ArgType returned when there are no more arguments available.
String
String
DictEntry
Dict entry; you’ll usually not encounter this one as dicts are arrays of dict entries.
Byte
u8
Int16
i16
UInt16
u16
Int32
i32
UInt32
u32
Int64
i64
UInt64
u64
Double
f64
UnixFd
File
Struct
Use tuples or Vec<Box
ObjectPath
Path
Signature
Signature
Implementations
Trait Implementations
sourceimpl Ord for ArgType
impl Ord for ArgType
sourceimpl PartialOrd<ArgType> for ArgType
impl PartialOrd<ArgType> for ArgType
sourcefn partial_cmp(&self, other: &ArgType) -> Option<Ordering>
fn partial_cmp(&self, other: &ArgType) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for ArgType
impl Eq for ArgType
impl StructuralEq for ArgType
impl StructuralPartialEq for ArgType
Auto Trait Implementations
impl RefUnwindSafe for ArgType
impl Send for ArgType
impl Sync for ArgType
impl Unpin for ArgType
impl UnwindSafe for ArgType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more