[][src]Struct abin::NewStr

pub struct NewStr { /* fields omitted */ }

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

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

Implementations

impl NewStr[src]

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

Constructs a builder that can be used to create Str.

Trait Implementations

impl BooToOwned<str, AnyStr<Bin>> for NewStr[src]

impl StrFactory for NewStr[src]

type TBinFactory = NewBin

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 NewStr

impl Send for NewStr

impl Sync for NewStr

impl Unpin for NewStr

impl UnwindSafe for NewStr

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.