[][src]Struct dprint_core::StringContainer

pub struct StringContainer<TString> where
    TString: StringTrait
{ pub text: TString, // some fields omitted }

A container that holds the string's value and character count.

Fields

text: TString

The string value.

Methods

impl<TString> StringContainer<TString> where
    TString: StringTrait
[src]

pub fn new(text: TString) -> StringContainer<TString>[src]

Creates a new string container.

Trait Implementations

impl<TString: Clone> Clone for StringContainer<TString> where
    TString: StringTrait
[src]

Auto Trait Implementations

impl<TString> RefUnwindSafe for StringContainer<TString> where
    TString: RefUnwindSafe

impl<TString> Send for StringContainer<TString> where
    TString: Send

impl<TString> Sync for StringContainer<TString> where
    TString: Sync

impl<TString> Unpin for StringContainer<TString> where
    TString: Unpin

impl<TString> UnwindSafe for StringContainer<TString> where
    TString: 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<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, 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.