#[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
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
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>
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 moreimpl 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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