[][src]Struct abin::Bin

#[repr(C)]pub struct Bin { /* fields omitted */ }

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

use abin::{NewBin, BinFactory, Bin, AnyBin};
let bin : Bin = NewBin::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 Bin[src]

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

impl BooToOwned<[u8], Bin> for NewBin[src]

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

impl Clone for Bin[src]

impl Debug for Bin[src]

impl Deref for Bin[src]

type Target = [u8]

The resulting type after dereferencing.

impl Drop for Bin[src]

impl Eq for Bin[src]

impl Hash for Bin[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 Bin[src]

impl<'a> IntoIterator for &'a Bin[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 Bin[src]

type Item = u8

The type of the elements being iterated over.

type IntoIter = IntoIter<Bin>

Which kind of iterator are we turning this into?

impl IntoSync for Bin[src]

type Target = SBin

impl IntoUnSync for Bin[src]

This might actually do something, since this Bin could just be an un-synchronized view for a synchronized binary. In that case, the binary is converted.

type Target = Bin

impl IntoUnSyncView for Bin[src]

This does nothing, since Bin is already un-synchronized (view). Just returns itself.

type Target = Bin

impl LowerHex for Bin[src]

impl Ord for Bin[src]

impl PartialEq<Bin> for Bin[src]

impl PartialOrd<Bin> for Bin[src]

impl UnSyncRef for Bin[src]

This does nothing, since Bin is already un-synchronized (view). Just returns itself.

type Target = Bin

impl UnsafeBin for Bin[src]

impl UpperHex for Bin[src]

Auto Trait Implementations

impl RefUnwindSafe for Bin

impl !Send for Bin

impl !Sync for Bin

impl Unpin for Bin

impl UnwindSafe for Bin

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.