[−][src]Struct shared_str::ArcStr
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]
F: FnOnce(&str) -> &str,
pub unsafe fn slice_with_unchecked<F>(&self, f: F) -> Self where
F: FnOnce(&str) -> &str,
[src]
F: FnOnce(&str) -> &str,
Trait Implementations
impl Clone for ArcStr
[src]
impl Debug for ArcStr
[src]
impl Deref for ArcStr
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,