[−][src]Struct dbus_strings::SignatureSingleBuf
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 String and CString, this struct is an owned buffer. It Derefs to its unsized variant.
Methods
impl SignatureSingleBuf
[src]
pub fn new<S: Into<String>>(s: S) -> Result<Self, InvalidStringError>
[src]
Creates a new string.
pub fn into_inner(self) -> String
[src]
Unwraps the inner String.
Methods from Deref<Target = SignatureSingle>
pub fn as_dbus_str(&self) -> &DBusStr
[src]
Type conversion to DBusStr.
Trait Implementations
impl Borrow<SignatureSingle> for SignatureSingleBuf
[src]
fn borrow(&self) -> &SignatureSingle
[src]
impl Clone for SignatureSingleBuf
[src]
fn clone(&self) -> SignatureSingleBuf
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SignatureSingleBuf
[src]
impl Deref for SignatureSingleBuf
[src]
type Target = SignatureSingle
The resulting type after dereferencing.
fn deref(&self) -> &SignatureSingle
[src]
impl Display for SignatureSingleBuf
[src]
impl Eq for SignatureSingleBuf
[src]
impl<'a> From<&'a SignatureSingleBuf> for Cow<'a, SignatureSingle>
[src]
fn from(s: &'a SignatureSingleBuf) -> Cow<'a, SignatureSingle>
[src]
impl From<SignatureSingleBuf> for SignatureMultiBuf
[src]
fn from(s: SignatureSingleBuf) -> SignatureMultiBuf
[src]
impl<'a> From<SignatureSingleBuf> for Cow<'a, SignatureSingle>
[src]
fn from(s: SignatureSingleBuf) -> Cow<'a, SignatureSingle>
[src]
impl From<SignatureSingleBuf> for DBusString
[src]
fn from(s: SignatureSingleBuf) -> DBusString
[src]
impl Hash for SignatureSingleBuf
[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 SignatureSingleBuf
[src]
fn cmp(&self, other: &SignatureSingleBuf) -> 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<SignatureSingleBuf> for SignatureSingleBuf
[src]
fn eq(&self, other: &SignatureSingleBuf) -> bool
[src]
fn ne(&self, other: &SignatureSingleBuf) -> bool
[src]
impl PartialOrd<SignatureSingleBuf> for SignatureSingleBuf
[src]
fn partial_cmp(&self, other: &SignatureSingleBuf) -> Option<Ordering>
[src]
fn lt(&self, other: &SignatureSingleBuf) -> bool
[src]
fn le(&self, other: &SignatureSingleBuf) -> bool
[src]
fn gt(&self, other: &SignatureSingleBuf) -> bool
[src]
fn ge(&self, other: &SignatureSingleBuf) -> bool
[src]
impl StructuralEq for SignatureSingleBuf
[src]
impl StructuralPartialEq for SignatureSingleBuf
[src]
impl TryFrom<DBusString> for SignatureSingleBuf
[src]
type Error = InvalidStringError
The type returned in the event of a conversion error.
fn try_from(s: DBusString) -> Result<SignatureSingleBuf, Self::Error>
[src]
impl TryFrom<String> for SignatureSingleBuf
[src]
type Error = InvalidStringError
The type returned in the event of a conversion error.
fn try_from(s: String) -> Result<SignatureSingleBuf, Self::Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for SignatureSingleBuf
impl Send for SignatureSingleBuf
impl Sync for SignatureSingleBuf
impl Unpin for SignatureSingleBuf
impl UnwindSafe for SignatureSingleBuf
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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,
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>,