[−][src]Struct libzmq::GroupSlice
A slice to a Group
A GroupSlice
cannot be constructed directly. It is either obtained from a
Group
or from [Msg::group
].
Namely, the length this group identifier must not exceed MAX_GROUP_SIZE
.
Methods
impl GroupSlice
[src]
pub fn as_c_str(&self) -> &CStr
[src]
pub fn to_str(&self) -> Result<&str, Utf8Error>
[src]
pub fn to_string_lossy(&self) -> Cow<str>
[src]
pub fn to_bytes(&self) -> &[u8]
[src]
Trait Implementations
impl ToOwned for GroupSlice
[src]
type Owned = Group
The resulting type after obtaining ownership.
fn to_owned(&self) -> Self::Owned
[src]
fn clone_into(&self, target: &mut Self::Owned)
[src]
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl Eq for GroupSlice
[src]
impl PartialEq<GroupSlice> for GroupSlice
[src]
fn eq(&self, other: &GroupSlice) -> bool
[src]
fn ne(&self, other: &GroupSlice) -> bool
[src]
impl PartialEq<str> for GroupSlice
[src]
fn eq(&self, other: &str) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl PartialEq<GroupSlice> for str
[src]
fn eq(&self, other: &GroupSlice) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl PartialEq<Group> for GroupSlice
[src]
fn eq(&self, other: &Group) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl<'_> PartialEq<Group> for &'_ GroupSlice
[src]
fn eq(&self, other: &Group) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl<'a> PartialEq<GroupSlice> for Group
[src]
fn eq(&self, other: &GroupSlice) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl<'a, '_> PartialEq<&'_ GroupSlice> for Group
[src]
fn eq(&self, other: &&GroupSlice) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl AsRef<CStr> for GroupSlice
[src]
impl AsRef<GroupSlice> for Group
[src]
fn as_ref(&self) -> &GroupSlice
[src]
impl<'a> From<&'a Group> for &'a GroupSlice
[src]
impl<'a> From<&'a GroupSlice> for Group
[src]
fn from(s: &'a GroupSlice) -> Self
[src]
impl<'a> IntoIterator for &'a GroupSlice
[src]
type Item = &'a GroupSlice
The type of the elements being iterated over.
type IntoIter = IntoIter<&'a GroupSlice>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl Deref for GroupSlice
[src]
impl Debug for GroupSlice
[src]
impl<'a> Display for &'a GroupSlice
[src]
impl Hash for GroupSlice
[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,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Borrow<GroupSlice> for Group
[src]
fn borrow(&self) -> &GroupSlice
[src]
Auto Trait Implementations
impl Send for GroupSlice
impl Sync for GroupSlice
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> 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,