[][src]Struct abin::NewSStr

pub struct NewSStr { /* fields omitted */ }

Default implementation used to create SStr. See StrFactory for documentation.

use abin::{SStr, NewSStr, StrFactory};
let string : SStr = NewSStr::from_static("Hello, I'm a binary!");
assert_eq!("Hello, I'm a binary!", string.as_str());

Implementations

impl NewSStr[src]

pub fn builder<'a>() -> impl StrBuilder<'a, T = SBin>[src]

Constructs a builder that can be used to create SStr.

Trait Implementations

impl BooToOwned<str, AnyStr<SBin>> for NewSStr[src]

impl StrFactory for NewSStr[src]

type TBinFactory = NewSBin

The binary backend this string factory uses to produce strings (strings are just wrappers for utf-8-validated binaries). Read more

Auto Trait Implementations

impl RefUnwindSafe for NewSStr

impl Send for NewSStr

impl Sync for NewSStr

impl Unpin for NewSStr

impl UnwindSafe for NewSStr

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