#[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§
source§impl Ord for ArgType
impl Ord for ArgType
source§impl PartialEq<ArgType> for ArgType
impl PartialEq<ArgType> for ArgType
source§impl PartialOrd<ArgType> for ArgType
impl PartialOrd<ArgType> for ArgType
1.0.0 · source§fn 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