[−][src]Struct dbus_strings::MemberName
A D-Bus member name is usually something like "Hello", a single identifier without special characters.
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 MemberName
[src]
pub fn as_dbus_str(&self) -> &DBusStr
[src]
Type conversion to DBusStr.
Trait Implementations
impl AsRef<DBusStr> for MemberName
[src]
impl AsRef<str> for MemberName
[src]
impl Borrow<MemberName> for MemberNameBuf
[src]
fn borrow(&self) -> &MemberName
[src]
impl Debug for MemberName
[src]
impl Deref for MemberName
[src]
impl Display for MemberName
[src]
impl Eq for MemberName
[src]
impl<'a> From<&'a MemberName> for Cow<'a, MemberName>
[src]
fn from(s: &'a MemberName) -> Cow<'a, MemberName>
[src]
impl<'a> From<&'a MemberName> for &'a DBusStr
[src]
fn from(s: &'a MemberName) -> &'a DBusStr
[src]
impl Hash for MemberName
[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 MemberName
[src]
fn cmp(&self, other: &MemberName) -> 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<MemberName> for MemberName
[src]
fn eq(&self, other: &MemberName) -> bool
[src]
fn ne(&self, other: &MemberName) -> bool
[src]
impl PartialOrd<MemberName> for MemberName
[src]
fn partial_cmp(&self, other: &MemberName) -> Option<Ordering>
[src]
fn lt(&self, other: &MemberName) -> bool
[src]
fn le(&self, other: &MemberName) -> bool
[src]
fn gt(&self, other: &MemberName) -> bool
[src]
fn ge(&self, other: &MemberName) -> bool
[src]
impl StringLike for MemberName
[src]
const NAME: &'static str
[src]
fn new_unchecked(s: &str) -> &Self
[src]
fn new_unchecked_owned(s: String) -> MemberNameBuf
[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 MemberName
[src]
impl StructuralPartialEq for MemberName
[src]
impl ToOwned for MemberName
[src]
type Owned = MemberNameBuf
The resulting type after obtaining ownership.
fn to_owned(&self) -> MemberNameBuf
[src]
fn clone_into(&self, target: &mut Self::Owned)
[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 str> for &'a MemberName
[src]
type Error = InvalidStringError
The type returned in the event of a conversion error.
fn try_from(s: &'a str) -> Result<&'a MemberName, Self::Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for MemberName
impl Send for MemberName
impl Sync for MemberName
impl Unpin for MemberName
impl UnwindSafe for MemberName
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,