[−][src]Struct dbus_strings::SignatureSingle
A D-Bus type signature of a single type, e g "b" or "a{sv}" but not "ii"
For exact rules see the D-Bus specification.
Like str and CStr, this struct is unsized, which means that the way to access it is through a reference.
Methods
impl SignatureSingle
[src]
pub fn as_dbus_str(&self) -> &DBusStr
[src]
Type conversion to DBusStr.
Trait Implementations
impl AsRef<DBusStr> for SignatureSingle
[src]
impl AsRef<str> for SignatureSingle
[src]
impl Borrow<SignatureSingle> for SignatureSingleBuf
[src]
fn borrow(&self) -> &SignatureSingle
[src]
impl Debug for SignatureSingle
[src]
impl Deref for SignatureSingle
[src]
impl Display for SignatureSingle
[src]
impl Eq for SignatureSingle
[src]
impl<'a> From<&'a SignatureSingle> for &'a SignatureMulti
[src]
fn from(s: &'a SignatureSingle) -> &'a SignatureMulti
[src]
impl<'a> From<&'a SignatureSingle> for Cow<'a, SignatureSingle>
[src]
fn from(s: &'a SignatureSingle) -> Cow<'a, SignatureSingle>
[src]
impl<'a> From<&'a SignatureSingle> for &'a DBusStr
[src]
fn from(s: &'a SignatureSingle) -> &'a DBusStr
[src]
impl Hash for SignatureSingle
[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 Ord for SignatureSingle
[src]
fn cmp(&self, other: &SignatureSingle) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<SignatureSingle> for SignatureSingle
[src]
fn eq(&self, other: &SignatureSingle) -> bool
[src]
fn ne(&self, other: &SignatureSingle) -> bool
[src]
impl PartialOrd<SignatureSingle> for SignatureSingle
[src]
fn partial_cmp(&self, other: &SignatureSingle) -> Option<Ordering>
[src]
fn lt(&self, other: &SignatureSingle) -> bool
[src]
fn le(&self, other: &SignatureSingle) -> bool
[src]
fn gt(&self, other: &SignatureSingle) -> bool
[src]
fn ge(&self, other: &SignatureSingle) -> bool
[src]
impl StringLike for SignatureSingle
[src]
const NAME: &'static str
[src]
fn new_unchecked(s: &str) -> &Self
[src]
fn new_unchecked_owned(s: String) -> SignatureSingleBuf
[src]
fn is_valid(s: &str) -> Result<(), InvalidStringError>
[src]
fn new(s: &str) -> Result<&Self, InvalidStringError>
[src]
fn new_owned<S: Into<String>>(s: S) -> Result<Self::Owned, InvalidStringError>
[src]
impl StructuralEq for SignatureSingle
[src]
impl StructuralPartialEq for SignatureSingle
[src]
impl ToOwned for SignatureSingle
[src]
type Owned = SignatureSingleBuf
The resulting type after obtaining ownership.
fn to_owned(&self) -> SignatureSingleBuf
[src]
fn clone_into(&self, target: &mut Self::Owned)
[src]
impl<'a> TryFrom<&'a DBusStr> for &'a SignatureSingle
[src]
type Error = InvalidStringError
The type returned in the event of a conversion error.
fn try_from(s: &'a DBusStr) -> Result<&'a SignatureSingle, Self::Error>
[src]
impl<'a> TryFrom<&'a str> for &'a SignatureSingle
[src]
type Error = InvalidStringError
The type returned in the event of a conversion error.
fn try_from(s: &'a str) -> Result<&'a SignatureSingle, Self::Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for SignatureSingle
impl Send for SignatureSingle
impl Sync for SignatureSingle
impl Unpin for SignatureSingle
impl UnwindSafe for SignatureSingle
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,