[−][src]Struct dbus_strings::DBusStr
A D-Bus string must be valid UTF-8 and contain no interior nul bytes.
Like str and CStr, this struct is unsized, which means that the way to access it is through a reference.
Trait Implementations
impl AsRef<DBusStr> for InterfaceName
[src]
impl AsRef<DBusStr> for MemberName
[src]
impl AsRef<DBusStr> for ErrorName
[src]
impl AsRef<DBusStr> for BusName
[src]
impl AsRef<DBusStr> for SignatureSingle
[src]
impl AsRef<DBusStr> for SignatureMulti
[src]
impl AsRef<DBusStr> for ObjectPath
[src]
impl AsRef<str> for DBusStr
[src]
impl Borrow<DBusStr> for DBusString
[src]
impl Debug for DBusStr
[src]
impl Deref for DBusStr
[src]
impl Display for DBusStr
[src]
impl Eq for DBusStr
[src]
impl<'a> From<&'a BusName> for &'a DBusStr
[src]
impl<'a> From<&'a DBusStr> for Cow<'a, DBusStr>
[src]
impl<'a> From<&'a ErrorName> for &'a DBusStr
[src]
impl<'a> From<&'a InterfaceName> for &'a DBusStr
[src]
fn from(s: &'a InterfaceName) -> &'a DBusStr
[src]
impl<'a> From<&'a MemberName> for &'a DBusStr
[src]
fn from(s: &'a MemberName) -> &'a DBusStr
[src]
impl<'a> From<&'a ObjectPath> for &'a DBusStr
[src]
fn from(s: &'a ObjectPath) -> &'a DBusStr
[src]
impl<'a> From<&'a SignatureMulti> for &'a DBusStr
[src]
fn from(s: &'a SignatureMulti) -> &'a DBusStr
[src]
impl<'a> From<&'a SignatureSingle> for &'a DBusStr
[src]
fn from(s: &'a SignatureSingle) -> &'a DBusStr
[src]
impl Hash for DBusStr
[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 DBusStr
[src]
fn cmp(&self, other: &DBusStr) -> 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<DBusStr> for DBusStr
[src]
impl PartialOrd<DBusStr> for DBusStr
[src]
fn partial_cmp(&self, other: &DBusStr) -> Option<Ordering>
[src]
fn lt(&self, other: &DBusStr) -> bool
[src]
fn le(&self, other: &DBusStr) -> bool
[src]
fn gt(&self, other: &DBusStr) -> bool
[src]
fn ge(&self, other: &DBusStr) -> bool
[src]
impl StringLike for DBusStr
[src]
const NAME: &'static str
[src]
fn new_unchecked(s: &str) -> &Self
[src]
fn new_unchecked_owned(s: String) -> DBusString
[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 DBusStr
[src]
impl StructuralPartialEq for DBusStr
[src]
impl ToOwned for DBusStr
[src]
type Owned = DBusString
The resulting type after obtaining ownership.
fn to_owned(&self) -> DBusString
[src]
fn clone_into(&self, target: &mut Self::Owned)
[src]
impl<'a> TryFrom<&'a DBusStr> for &'a InterfaceName
[src]
type Error = InvalidStringError
The type returned in the event of a conversion error.
fn try_from(s: &'a DBusStr) -> Result<&'a InterfaceName, Self::Error>
[src]
impl<'a> TryFrom<&'a DBusStr> for &'a MemberName
[src]
type Error = InvalidStringError
The type returned in the event of a conversion error.
fn try_from(s: &'a DBusStr) -> Result<&'a MemberName, Self::Error>
[src]
impl<'a> TryFrom<&'a DBusStr> for &'a ErrorName
[src]
type Error = InvalidStringError
The type returned in the event of a conversion error.
fn try_from(s: &'a DBusStr) -> Result<&'a ErrorName, Self::Error>
[src]
impl<'a> TryFrom<&'a DBusStr> for &'a BusName
[src]
type Error = InvalidStringError
The type returned in the event of a conversion error.
fn try_from(s: &'a DBusStr) -> Result<&'a BusName, Self::Error>
[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 DBusStr> for &'a SignatureMulti
[src]
type Error = InvalidStringError
The type returned in the event of a conversion error.
fn try_from(s: &'a DBusStr) -> Result<&'a SignatureMulti, Self::Error>
[src]
impl<'a> TryFrom<&'a DBusStr> for &'a ObjectPath
[src]
type Error = InvalidStringError
The type returned in the event of a conversion error.
fn try_from(s: &'a DBusStr) -> Result<&'a ObjectPath, Self::Error>
[src]
impl<'a> TryFrom<&'a str> for &'a DBusStr
[src]
Auto Trait Implementations
impl RefUnwindSafe for DBusStr
impl Send for DBusStr
impl Sync for DBusStr
impl Unpin for DBusStr
impl UnwindSafe for DBusStr
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,