Struct zero_copy_pads::UnicodeWidth[][src]

pub struct UnicodeWidth<Inner: AsRef<str>>(_);

Treat UnicodeWidthStr::width as width.

Implementations

impl<Inner: AsRef<str>> UnicodeWidth<Inner>[src]

pub fn into_inner(self) -> Inner[src]

Extract the inner value.

pub fn as_inner(&self) -> &Inner[src]

Get reference to inner value.

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

Get reference to inner str.

Trait Implementations

impl<Inner: AsRef<str>> AsMut<Inner> for UnicodeWidth<Inner>[src]

impl<Inner: AsRef<str>> AsRef<Inner> for UnicodeWidth<Inner>[src]

impl<Inner: AsRef<str>> AsRef<str> for UnicodeWidth<Inner>[src]

impl<Inner: Clone + AsRef<str>> Clone for UnicodeWidth<Inner>[src]

impl<Inner: Copy + AsRef<str>> Copy for UnicodeWidth<Inner>[src]

impl<Inner: Debug + AsRef<str>> Debug for UnicodeWidth<Inner>[src]

impl<Inner: AsRef<str>> Deref for UnicodeWidth<Inner>[src]

type Target = Inner

The resulting type after dereferencing.

impl<Inner: AsRef<str>> DerefMut for UnicodeWidth<Inner>[src]

impl<Inner: AsRef<str>> Display for UnicodeWidth<Inner>[src]

impl<Inner: Eq + AsRef<str>> Eq for UnicodeWidth<Inner>[src]

impl<Inner: AsRef<str>> From<Inner> for UnicodeWidth<Inner>[src]

impl<Inner: PartialEq + AsRef<str>> PartialEq<UnicodeWidth<Inner>> for UnicodeWidth<Inner>[src]

impl<Inner: AsRef<str>> StructuralEq for UnicodeWidth<Inner>[src]

impl<Inner: AsRef<str>> StructuralPartialEq for UnicodeWidth<Inner>[src]

impl<Inner: AsRef<str>> Width for UnicodeWidth<Inner>[src]

Auto Trait Implementations

impl<Inner> RefUnwindSafe for UnicodeWidth<Inner> where
    Inner: RefUnwindSafe

impl<Inner> Send for UnicodeWidth<Inner> where
    Inner: Send

impl<Inner> Sync for UnicodeWidth<Inner> where
    Inner: Sync

impl<Inner> Unpin for UnicodeWidth<Inner> where
    Inner: Unpin

impl<Inner> UnwindSafe for UnicodeWidth<Inner> where
    Inner: UnwindSafe

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<!> for T[src]

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

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

impl<X> Pipe for X

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.