[][src]Struct libzmq::GroupSlice

pub struct GroupSlice { /* fields omitted */ }

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 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]

impl PartialEq<str> for GroupSlice[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<GroupSlice> for str[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<Group> for GroupSlice[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<'_> PartialEq<Group> for &'_ GroupSlice[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<'a> PartialEq<GroupSlice> for Group[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<'a, '_> PartialEq<&'_ GroupSlice> for Group[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl AsRef<CStr> for GroupSlice[src]

impl AsRef<GroupSlice> for Group[src]

impl<'a> From<&'a Group> for &'a GroupSlice[src]

impl<'a> From<&'a GroupSlice> for Group[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?

impl Deref for GroupSlice[src]

type Target = CStr

The resulting type after dereferencing.

impl Debug for GroupSlice[src]

impl<'a> Display for &'a GroupSlice[src]

impl Hash for GroupSlice[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Borrow<GroupSlice> for Group[src]

Auto Trait Implementations

impl Send for GroupSlice

impl Sync for GroupSlice

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]