[][src]Struct abin::SBin

pub struct SBin(_);

A binary that does implement Send + Sync. See AnyBin for documentation; see Bin if you don't need Send + Sync. See BinFactory on how to create binaries.

use abin::{NewSBin, SBin, BinFactory, AnyBin};
let bin : SBin = NewSBin::from_static("Hello, I'm a binary!".as_bytes());
assert_eq!("Hello, I'm a binary!".as_bytes(), bin.as_slice());

Trait Implementations

impl AnyBin for SBin[src]

impl AsRef<[u8]> for SBin[src]

impl BooToOwned<[u8], SBin> for NewSBin[src]

impl Borrow<[u8]> for SBin[src]

impl Clone for SBin[src]

impl Debug for SBin[src]

impl Deref for SBin[src]

type Target = [u8]

The resulting type after dereferencing.

impl Eq for SBin[src]

impl Hash for SBin[src]

impl Into<Bin> for SBin[src]

Returns the un-synchronized view of this binary. (so it's the same as IntoUnSyncView; NOT IntoUnSync).

impl Into<Vec<u8>> for SBin[src]

impl<'a> IntoIterator for &'a SBin[src]

type Item = &'a u8

The type of the elements being iterated over.

type IntoIter = Iter<'a, u8>

Which kind of iterator are we turning this into?

impl IntoIterator for SBin[src]

type Item = u8

The type of the elements being iterated over.

type IntoIter = IntoIter<SBin>

Which kind of iterator are we turning this into?

impl IntoSync for SBin[src]

This is a no-op (it's already sync).

type Target = SBin

impl IntoUnSync for SBin[src]

type Target = Bin

impl IntoUnSyncView for SBin[src]

Returns the un-synchronized view of this binary.

type Target = Bin

impl LowerHex for SBin[src]

impl Ord for SBin[src]

impl PartialEq<SBin> for SBin[src]

impl PartialOrd<SBin> for SBin[src]

impl Send for SBin[src]

impl Sync for SBin[src]

impl UnSyncRef for SBin[src]

type Target = Bin

impl UpperHex for SBin[src]

Auto Trait Implementations

impl RefUnwindSafe for SBin

impl Unpin for SBin

impl UnwindSafe for SBin

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.