[][src]Struct copystr::s28

pub struct s28 { /* fields omitted */ }

Methods

impl s28[src]

pub fn new(string: &str) -> Result<Self, Error>[src]

pub fn from_slice(raw: &[u8]) -> Result<Self, Error>[src]

Doesn't check UTF8, only if slice lenght is within capacity.

pub fn capacity() -> usize[src]

pub fn len(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

pub fn as_str(&self) -> &str[src]

Carry out on-the-fly UTF8 conversion. Panics if this is violated.

pub fn try_as_str(&self) -> Result<&str, Error>[src]

pub fn as_bytes(&self) -> &[u8][src]

pub fn as_all_bytes(&self) -> &[u8][src]

Trait Implementations

impl Clone for s28[src]

impl Copy for s28[src]

impl Debug for s28[src]

impl Default for s28[src]

impl Display for s28[src]

impl Eq for s28[src]

impl Hash for s28[src]

impl Ord for s28[src]

impl PartialEq<s28> for s28[src]

impl PartialOrd<s28> for s28[src]

impl StructuralEq for s28[src]

impl StructuralPartialEq for s28[src]

impl<'_> TryFrom<&'_ str> for s28[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for s28

impl Send for s28

impl Sync for s28

impl Unpin for s28

impl UnwindSafe for s28

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.