[−][src]Struct dbus::arg::Variant
A simple wrapper to specify a D-Bus variant.
See the argument guide and module level documentation for details and examples.
Methods
impl Variant<Box<dyn RefArg>>
[src]
pub fn new_refarg<'a>(i: &mut Iter<'a>) -> Option<Self>
[src]
Creates a new refarg from an Iter. Mainly for internal use.
Trait Implementations
impl<T> Arg for Variant<T>
[src]
impl<T: Arg + Append> Append for Variant<T>
[src]
fn append_by_ref(&self, i: &mut IterAppend)
[src]
fn append(self, ia: &mut IterAppend) where
Self: Sized,
[src]
Self: Sized,
impl Append for Variant<Box<dyn RefArg>>
[src]
fn append_by_ref(&self, i: &mut IterAppend)
[src]
fn append(self, ia: &mut IterAppend) where
Self: Sized,
[src]
Self: Sized,
impl Append for Variant<MessageItem>
[src]
fn append_by_ref(&self, i: &mut IterAppend)
[src]
fn append(self, ia: &mut IterAppend) where
Self: Sized,
[src]
Self: Sized,
impl<'a, T: Get<'a>> Get<'a> for Variant<T>
[src]
impl<'a> Get<'a> for Variant<Iter<'a>>
[src]
impl<T: RefArg> RefArg for Variant<T>
[src]
fn arg_type(&self) -> ArgType
[src]
fn signature(&self) -> Signature<'static>
[src]
fn append(&self, i: &mut IterAppend)
[src]
fn as_any(&self) -> &dyn Any where
T: 'static,
[src]
T: 'static,
fn as_any_mut(&mut self) -> &mut dyn Any where
T: 'static,
[src]
T: 'static,
fn as_i64(&self) -> Option<i64>
[src]
fn as_u64(&self) -> Option<u64>
[src]
fn as_f64(&self) -> Option<f64>
[src]
fn as_str(&self) -> Option<&str>
[src]
fn as_iter<'a>(
&'a self
) -> Option<Box<dyn Iterator<Item = &'a dyn RefArg> + 'a>>
[src]
&'a self
) -> Option<Box<dyn Iterator<Item = &'a dyn RefArg> + 'a>>
fn box_clone(&self) -> Box<dyn RefArg + 'static>
[src]
impl<T: Eq> Eq for Variant<T>
[src]
impl<T: Default> Default for Variant<T>
[src]
impl<T: Clone> Clone for Variant<T>
[src]
impl<T: PartialOrd> PartialOrd<Variant<T>> for Variant<T>
[src]
fn partial_cmp(&self, other: &Variant<T>) -> Option<Ordering>
[src]
fn lt(&self, other: &Variant<T>) -> bool
[src]
fn le(&self, other: &Variant<T>) -> bool
[src]
fn gt(&self, other: &Variant<T>) -> bool
[src]
fn ge(&self, other: &Variant<T>) -> bool
[src]
impl<T: PartialEq> PartialEq<Variant<T>> for Variant<T>
[src]
impl<T: Ord> Ord for Variant<T>
[src]
fn cmp(&self, other: &Variant<T>) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<T: Copy> Copy for Variant<T>
[src]
impl<T: Hash> Hash for Variant<T>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T: Debug> Debug for Variant<T>
[src]
Auto Trait Implementations
impl<T> Send for Variant<T> where
T: Send,
T: Send,
impl<T> Unpin for Variant<T> where
T: Unpin,
T: Unpin,
impl<T> Sync for Variant<T> where
T: Sync,
T: Sync,
impl<T> UnwindSafe for Variant<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for Variant<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,