[−][src]Struct pstr::MowStr
Mutable on Write Interning Pool String
Implementations
impl MowStr
[src]
pub fn new(s: impl AsRef<str>) -> Self
[src]
pub fn new_mut(s: impl Into<String>) -> Self
[src]
pub fn mut_empty() -> Self
[src]
pub fn mut_with_capacity(capacity: usize) -> Self
[src]
pub fn from_utf8(s: impl AsRef<[u8]>) -> Result<Self, Utf8Error>
[src]
pub fn from_utf16(s: impl AsRef<[u16]>) -> Result<Self, FromUtf16Error>
[src]
pub fn from_string(s: String) -> Self
[src]
pub fn from_string_mut(s: String) -> Self
[src]
pub fn from_boxed_str(s: Box<str>) -> Self
[src]
pub fn from_boxed_str_mut(s: Box<str>) -> Self
[src]
pub fn from_istr(s: IStr) -> Self
[src]
pub fn from_istr_mut(s: IStr) -> Self
[src]
pub unsafe fn from_utf8_unchecked(bytes: impl AsRef<[u8]>) -> Self
[src]
impl MowStr
[src]
pub fn intern(&mut self)
[src]
pub fn to_mut(&mut self)
[src]
pub fn mutdown(&mut self) -> &mut String
[src]
pub fn is_interned(&self) -> bool
[src]
pub fn is_mutable(&self) -> bool
[src]
impl MowStr
[src]
pub fn ref_str(&self) -> &str
[src]
pub fn mut_str(&mut self) -> &mut str
[src]
pub fn mut_string(&mut self) -> &mut String
[src]
pub fn as_str(&self) -> &str
[src]
pub fn as_mut_str(&mut self) -> &mut str
[src]
pub fn as_mut_string(&mut self) -> &mut String
[src]
pub unsafe fn as_mut_vec(&mut self) -> &mut Vec<u8>
[src]
pub fn into_string(self) -> String
[src]
pub fn into_boxed_str(self) -> Box<str>
[src]
impl MowStr
[src]
pub fn push_str(&mut self, string: impl AsRef<str>)
[src]
pub fn reserve(&mut self, additional: usize)
[src]
pub fn reserve_exact(&mut self, additional: usize)
[src]
pub fn shrink_to_fit(&mut self)
[src]
pub fn push(&mut self, ch: char)
[src]
pub fn truncate(&mut self, new_len: usize)
[src]
pub fn pop(&mut self) -> Option<char>
[src]
pub fn remove(&mut self, idx: usize) -> char
[src]
pub fn retain<F: FnMut(char) -> bool>(&mut self, f: F)
[src]
pub fn insert(&mut self, idx: usize, ch: char)
[src]
pub fn insert_str(&mut self, idx: usize, string: &str)
[src]
pub fn split_off(&mut self, at: usize) -> MowStr
[src]
pub fn clear(&mut self)
[src]
pub fn drain<R: RangeBounds<usize>>(&mut self, range: R) -> Drain<'_>
[src]
pub fn replace_range<R: RangeBounds<usize>>(
&mut self,
range: R,
replace_with: &str
)
[src]
&mut self,
range: R,
replace_with: &str
)
Trait Implementations
impl<'_> Add<&'_ str> for MowStr
[src]
type Output = MowStr
The resulting type after applying the +
operator.
fn add(self, rhs: &str) -> Self::Output
[src]
impl<'_> AddAssign<&'_ str> for MowStr
[src]
fn add_assign(&mut self, rhs: &str)
[src]
impl AsMut<String> for MowStr
[src]
impl AsMut<str> for MowStr
[src]
impl AsRef<[u8]> for MowStr
[src]
impl AsRef<OsStr> for MowStr
[src]
impl AsRef<Path> for MowStr
[src]
impl AsRef<str> for MowStr
[src]
impl Borrow<str> for MowStr
[src]
impl BorrowMut<str> for MowStr
[src]
fn borrow_mut(&mut self) -> &mut str
[src]
impl Clone for MowStr
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for MowStr
[src]
impl Deref for MowStr
[src]
impl DerefMut for MowStr
[src]
impl Eq for MowStr
[src]
impl<'a> Extend<&'a char> for MowStr
[src]
fn extend<T: IntoIterator<Item = &'a char>>(&mut self, iter: T)
[src]
fn extend_one(&mut self, item: A)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]
impl<'a> Extend<&'a str> for MowStr
[src]
fn extend<T: IntoIterator<Item = &'a str>>(&mut self, iter: T)
[src]
fn extend_one(&mut self, item: A)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]
impl Extend<Box<str>> for MowStr
[src]
fn extend<T: IntoIterator<Item = Box<str>>>(&mut self, iter: T)
[src]
fn extend_one(&mut self, item: A)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]
impl<'a> Extend<Cow<'a, str>> for MowStr
[src]
fn extend<T: IntoIterator<Item = Cow<'a, str>>>(&mut self, iter: T)
[src]
fn extend_one(&mut self, item: A)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]
impl Extend<IStr> for MowStr
[src]
fn extend<T: IntoIterator<Item = IStr>>(&mut self, iter: T)
[src]
fn extend_one(&mut self, item: A)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]
impl Extend<MowStr> for MowStr
[src]
fn extend<T: IntoIterator<Item = MowStr>>(&mut self, iter: T)
[src]
fn extend_one(&mut self, item: A)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]
impl Extend<String> for MowStr
[src]
fn extend<T: IntoIterator<Item = String>>(&mut self, iter: T)
[src]
fn extend_one(&mut self, item: A)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]
impl<'_> From<&'_ String> for MowStr
[src]
impl<'_> From<&'_ mut str> for MowStr
[src]
impl<'_> From<&'_ str> for MowStr
[src]
impl<'a> From<&'a MowStr> for Cow<'a, str>
[src]
impl From<Box<str>> for MowStr
[src]
impl<'a> From<Cow<'a, str>> for MowStr
[src]
impl From<IStr> for MowStr
[src]
impl From<MowStr> for String
[src]
impl From<MowStr> for Box<str>
[src]
impl From<MowStr> for IStr
[src]
impl From<MowStr> for Vec<u8>
[src]
impl From<MowStr> for Arc<str>
[src]
impl From<MowStr> for Rc<str>
[src]
impl<'a> From<MowStr> for Cow<'a, str>
[src]
impl From<MowStr> for Box<dyn Error>
[src]
impl From<MowStr> for Box<dyn Error + Send + Sync>
[src]
impl From<MowStr> for OsString
[src]
impl From<MowStr> for PathBuf
[src]
impl From<String> for MowStr
[src]
impl From<char> for MowStr
[src]
impl<'a> FromIterator<&'a char> for MowStr
[src]
fn from_iter<T: IntoIterator<Item = &'a char>>(iter: T) -> Self
[src]
impl<'a> FromIterator<&'a str> for MowStr
[src]
fn from_iter<T: IntoIterator<Item = &'a str>>(iter: T) -> Self
[src]
impl FromIterator<Box<str>> for MowStr
[src]
fn from_iter<T: IntoIterator<Item = Box<str>>>(iter: T) -> Self
[src]
impl<'a> FromIterator<Cow<'a, str>> for MowStr
[src]
fn from_iter<T: IntoIterator<Item = Cow<'a, str>>>(iter: T) -> Self
[src]
impl FromIterator<String> for MowStr
[src]
fn from_iter<T: IntoIterator<Item = String>>(iter: T) -> Self
[src]
impl FromIterator<char> for MowStr
[src]
fn from_iter<T: IntoIterator<Item = char>>(iter: T) -> Self
[src]
impl FromStr for MowStr
[src]
type Err = ParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for MowStr
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<I: SliceIndex<str>> Index<I> for MowStr
[src]
type Output = <I as SliceIndex<str>>::Output
The returned type after indexing.
fn index(&self, index: I) -> &Self::Output
[src]
impl<I: SliceIndex<str>> IndexMut<I> for MowStr
[src]
impl Interned for MowStr
[src]
impl Interning for MowStr
[src]
impl Muterned for MowStr
[src]
impl Muterning for MowStr
[src]
impl Ord for MowStr
[src]
fn cmp(&self, other: &MowStr) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<MowStr> for MowStr
[src]
impl PartialOrd<MowStr> for MowStr
[src]
fn partial_cmp(&self, other: &MowStr) -> Option<Ordering>
[src]
fn lt(&self, other: &MowStr) -> bool
[src]
fn le(&self, other: &MowStr) -> bool
[src]
fn gt(&self, other: &MowStr) -> bool
[src]
fn ge(&self, other: &MowStr) -> bool
[src]
impl StructuralEq for MowStr
[src]
impl StructuralPartialEq for MowStr
[src]
impl ToSocketAddrs for MowStr
[src]
type Iter = <str as ToSocketAddrs>::Iter
Returned iterator over socket addresses which this type may correspond to. Read more
fn to_socket_addrs(&self) -> Result<Self::Iter>
[src]
impl ToString for MowStr
[src]
impl Write for MowStr
[src]
Auto Trait Implementations
impl RefUnwindSafe for MowStr
impl Send for MowStr
impl Sync for MowStr
impl Unpin for MowStr
impl UnwindSafe for MowStr
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>,