[][src]Struct shared_str::ArcStr

pub struct ArcStr { /* fields omitted */ }

Implementations

impl ArcStr[src]

pub fn new(s: impl Into<String>) -> Self[src]

pub fn from_slice(owner: &Self, s: &str) -> Option<Self>[src]

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

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

pub fn trim(&self) -> Self[src]

pub fn trim_start(&self) -> Self[src]

pub fn trim_end(&self) -> Self[src]

pub fn owns(&self, slice: &str) -> bool[src]

pub fn rejoin(&self, slice: &str) -> Option<Self>[src]

pub unsafe fn rejoin_unchecked(&self, slice: &str) -> Self[src]

pub fn slice_with<F>(&self, f: F) -> Option<Self> where
    F: FnOnce(&str) -> &str
[src]

pub unsafe fn slice_with_unchecked<F>(&self, f: F) -> Self where
    F: FnOnce(&str) -> &str
[src]

Trait Implementations

impl Clone for ArcStr[src]

impl Debug for ArcStr[src]

impl Deref for ArcStr[src]

type Target = str

The resulting type after dereferencing.

impl Display for ArcStr[src]

impl Eq for ArcStr[src]

impl<'_> From<&'_ str> for ArcStr[src]

impl From<Arc<str>> for ArcStr[src]

impl From<String> for ArcStr[src]

impl PartialEq<ArcStr> for ArcStr[src]

impl Send for ArcStr[src]

impl StructuralEq for ArcStr[src]

impl StructuralPartialEq for ArcStr[src]

impl Sync for ArcStr[src]

Auto Trait Implementations

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.