Struct soft_ascii_string::SoftAsciiString [−][src]
pub struct SoftAsciiString(_);
a String
wrapper with an additional "is us-ascii" soft constraint
Methods
impl SoftAsciiString
[src]
impl SoftAsciiString
pub fn from_unchecked<S: Into<String>>(s: S) -> Self
[src]
pub fn from_unchecked<S: Into<String>>(s: S) -> Self
pub fn from_string_unchecked<S: Into<String>>(s: S) -> Self
[src]
pub fn from_string_unchecked<S: Into<String>>(s: S) -> Self
: use from_unchecked
pub fn from_string<S>(source: S) -> Result<Self, FromSourceError<S>> where
S: Debug + AsRef<str> + Into<String>,
[src]
pub fn from_string<S>(source: S) -> Result<Self, FromSourceError<S>> where
S: Debug + AsRef<str> + Into<String>,
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn with_capacity(cap: usize) -> Self
[src]
pub fn with_capacity(cap: usize) -> Self
pub fn revalidate_soft_constraint(self) -> Result<SoftAsciiString, String>
[src]
pub fn revalidate_soft_constraint(self) -> Result<SoftAsciiString, String>
pub fn inner_string_mut(&mut self) -> &mut String
[src]
pub fn inner_string_mut(&mut self) -> &mut String
pub fn inner_string(&self) -> &String
[src]
pub fn inner_string(&self) -> &String
pub fn push_str(&mut self, other: &SoftAsciiStr)
[src]
pub fn push_str(&mut self, other: &SoftAsciiStr)
pub fn into_bytes(self) -> Vec<u8>
[src]
pub fn into_bytes(self) -> Vec<u8>
pub fn push(&mut self, ch: SoftAsciiChar)
[src]
pub fn push(&mut self, ch: SoftAsciiChar)
pub fn pop(&mut self) -> Option<SoftAsciiChar>
[src]
pub fn pop(&mut self) -> Option<SoftAsciiChar>
pub fn remove(&mut self, idx: usize) -> SoftAsciiChar
[src]
pub fn remove(&mut self, idx: usize) -> SoftAsciiChar
pub fn insert(&mut self, idx: usize, ch: SoftAsciiChar)
[src]
pub fn insert(&mut self, idx: usize, ch: SoftAsciiChar)
pub fn insert_str(&mut self, idx: usize, string: &SoftAsciiStr)
[src]
pub fn insert_str(&mut self, idx: usize, string: &SoftAsciiStr)
pub fn as_soft_ascii_str(&self) -> &SoftAsciiStr
[src]
pub fn as_soft_ascii_str(&self) -> &SoftAsciiStr
pub fn as_soft_ascii_str_mut(&mut self) -> &mut SoftAsciiStr
[src]
pub fn as_soft_ascii_str_mut(&mut self) -> &mut SoftAsciiStr
pub fn split_off(&mut self, at: usize) -> SoftAsciiString
[src]
pub fn split_off(&mut self, at: usize) -> SoftAsciiString
pub fn into_boxed_soft_ascii_str(self) -> Box<SoftAsciiStr>
[src]
pub fn into_boxed_soft_ascii_str(self) -> Box<SoftAsciiStr>
pub fn into_boxed_str(self) -> Box<str>
[src]
pub fn into_boxed_str(self) -> Box<str>
pub fn is_ascii(&self) -> bool
[src]
pub fn is_ascii(&self) -> bool
impl SoftAsciiString
[src]
impl SoftAsciiString
pub fn as_bytes(&self) -> &[u8]
[src]
pub fn as_bytes(&self) -> &[u8]
pub fn capacity(&self) -> usize
[src]
pub fn capacity(&self) -> usize
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
pub fn as_str(&self) -> &str
[src]
pub fn as_str(&self) -> &str
pub fn is_empty(&self) -> bool
[src]
pub fn is_empty(&self) -> bool
impl SoftAsciiString
[src]
impl SoftAsciiString
pub fn reserve(&mut self, additional: usize)
[src]
pub fn reserve(&mut self, additional: usize)
pub fn reserve_exact(&mut self, additional: usize)
[src]
pub fn reserve_exact(&mut self, additional: usize)
pub fn shrink_to_fit(&mut self)
[src]
pub fn shrink_to_fit(&mut self)
pub fn truncate(&mut self, new_len: usize)
[src]
pub fn truncate(&mut self, new_len: usize)
pub fn clear(&mut self)
[src]
pub fn clear(&mut self)
Methods from Deref<Target = SoftAsciiStr>
pub fn revalidate_soft_constraint(&self) -> Result<&Self, FromSourceError<&str>>
[src]
pub fn revalidate_soft_constraint(&self) -> Result<&Self, FromSourceError<&str>>
reruns checks if the "is us-ascii" soft constraint is still valid
pub fn as_str(&self) -> &str
[src]
pub fn as_str(&self) -> &str
ⓘImportant traits for SoftAsciiLines<'a>pub fn lines(&self) -> SoftAsciiLines
[src]
pub fn lines(&self) -> SoftAsciiLines
ⓘImportant traits for SoftAsciiSplitWhitespace<'a>pub fn split_whitespace(&self) -> SoftAsciiSplitWhitespace
[src]
pub fn split_whitespace(&self) -> SoftAsciiSplitWhitespace
ⓘImportant traits for SoftAsciiCharIndices<'a>pub fn char_indices(&self) -> SoftAsciiCharIndices
[src]
pub fn char_indices(&self) -> SoftAsciiCharIndices
ⓘImportant traits for SoftAsciiChars<'a>pub fn chars(&self) -> SoftAsciiChars
[src]
pub fn chars(&self) -> SoftAsciiChars
pub fn split_at(&self, mid: usize) -> (&SoftAsciiStr, &SoftAsciiStr)
[src]
pub fn split_at(&self, mid: usize) -> (&SoftAsciiStr, &SoftAsciiStr)
pub unsafe fn slice_unchecked(&self, begin: usize, end: usize) -> &SoftAsciiStr
[src]
pub unsafe fn slice_unchecked(&self, begin: usize, end: usize) -> &SoftAsciiStr
pub fn inner_str_mut(&mut self) -> &mut str
[src]
pub fn inner_str_mut(&mut self) -> &mut str
returns a mutable str
reference to the inner buffer
Soft Constraint
be aware that it is very easy to introduce bugs when
directly editing a SoftAsciiStr
as an str
. Still
compared to a AsciiStr implementation this won't
introduce unsafety, just possible brakeage of the
soft constraint that the data should be ascii.
pub fn parse<F>(&self) -> Result<F, <F as FromStr>::Err> where
F: FromStr,
[src]
pub fn parse<F>(&self) -> Result<F, <F as FromStr>::Err> where
F: FromStr,
pub fn to_lowercase(&self) -> SoftAsciiString
[src]
pub fn to_lowercase(&self) -> SoftAsciiString
pub fn to_uppercase(&self) -> SoftAsciiString
[src]
pub fn to_uppercase(&self) -> SoftAsciiString
pub fn repeat(&self, n: usize) -> SoftAsciiString
[src]
pub fn repeat(&self, n: usize) -> SoftAsciiString
pub fn trim_right(&self) -> &SoftAsciiStr
[src]
pub fn trim_right(&self) -> &SoftAsciiStr
pub fn trim_left(&self) -> &SoftAsciiStr
[src]
pub fn trim_left(&self) -> &SoftAsciiStr
pub fn trim(&self) -> &SoftAsciiStr
[src]
pub fn trim(&self) -> &SoftAsciiStr
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
[src]
pub fn is_empty(&self) -> bool
pub fn is_char_boundary(&self, index: usize) -> bool
[src]
pub fn is_char_boundary(&self, index: usize) -> bool
pub fn as_ptr(&self) -> *const u8
[src]
pub fn as_ptr(&self) -> *const u8
pub fn encode_utf16(&self) -> EncodeUtf16
[src]
pub fn encode_utf16(&self) -> EncodeUtf16
pub fn is_ascii(&self) -> bool
[src]
pub fn is_ascii(&self) -> bool
pub fn as_bytes(&self) -> &[u8]
[src]
pub fn as_bytes(&self) -> &[u8]
Trait Implementations
impl PartialEq<SoftAsciiString> for SoftAsciiStr
[src]
impl PartialEq<SoftAsciiString> for SoftAsciiStr
fn eq(&self, other: &SoftAsciiString) -> bool
[src]
fn eq(&self, other: &SoftAsciiString) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<'a> PartialEq<SoftAsciiString> for &'a SoftAsciiStr
[src]
impl<'a> PartialEq<SoftAsciiString> for &'a SoftAsciiStr
fn eq(&self, other: &SoftAsciiString) -> bool
[src]
fn eq(&self, other: &SoftAsciiString) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Debug for SoftAsciiString
[src]
impl Debug for SoftAsciiString
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for SoftAsciiString
[src]
impl Clone for SoftAsciiString
fn clone(&self) -> SoftAsciiString
[src]
fn clone(&self) -> SoftAsciiString
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for SoftAsciiString
[src]
impl PartialEq for SoftAsciiString
fn eq(&self, other: &SoftAsciiString) -> bool
[src]
fn eq(&self, other: &SoftAsciiString) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &SoftAsciiString) -> bool
[src]
fn ne(&self, other: &SoftAsciiString) -> bool
This method tests for !=
.
impl Eq for SoftAsciiString
[src]
impl Eq for SoftAsciiString
impl PartialOrd for SoftAsciiString
[src]
impl PartialOrd for SoftAsciiString
fn partial_cmp(&self, other: &SoftAsciiString) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &SoftAsciiString) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &SoftAsciiString) -> bool
[src]
fn lt(&self, other: &SoftAsciiString) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &SoftAsciiString) -> bool
[src]
fn le(&self, other: &SoftAsciiString) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &SoftAsciiString) -> bool
[src]
fn gt(&self, other: &SoftAsciiString) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &SoftAsciiString) -> bool
[src]
fn ge(&self, other: &SoftAsciiString) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for SoftAsciiString
[src]
impl Ord for SoftAsciiString
fn cmp(&self, other: &SoftAsciiString) -> Ordering
[src]
fn cmp(&self, other: &SoftAsciiString) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for SoftAsciiString
[src]
impl Hash for SoftAsciiString
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Default for SoftAsciiString
[src]
impl Default for SoftAsciiString
fn default() -> SoftAsciiString
[src]
fn default() -> SoftAsciiString
Returns the "default value" for a type. Read more
impl Borrow<str> for SoftAsciiString
[src]
impl Borrow<str> for SoftAsciiString
impl Borrow<SoftAsciiStr> for SoftAsciiString
[src]
impl Borrow<SoftAsciiStr> for SoftAsciiString
fn borrow(&self) -> &SoftAsciiStr
[src]
fn borrow(&self) -> &SoftAsciiStr
Immutably borrows from an owned value. Read more
impl Deref for SoftAsciiString
[src]
impl Deref for SoftAsciiString
type Target = SoftAsciiStr
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl DerefMut for SoftAsciiString
[src]
impl DerefMut for SoftAsciiString
impl<'a> AddAssign<&'a SoftAsciiStr> for SoftAsciiString
[src]
impl<'a> AddAssign<&'a SoftAsciiStr> for SoftAsciiString
fn add_assign(&mut self, other: &'a SoftAsciiStr)
[src]
fn add_assign(&mut self, other: &'a SoftAsciiStr)
Performs the +=
operation.
impl<'a> Add<&'a SoftAsciiStr> for SoftAsciiString
[src]
impl<'a> Add<&'a SoftAsciiStr> for SoftAsciiString
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: &'a SoftAsciiStr) -> Self
[src]
fn add(self, other: &'a SoftAsciiStr) -> Self
Performs the +
operation.
impl PartialEq<SoftAsciiString> for str
[src]
impl PartialEq<SoftAsciiString> for str
fn eq(&self, other: &SoftAsciiString) -> bool
[src]
fn eq(&self, other: &SoftAsciiString) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<'a> PartialEq<&'a str> for SoftAsciiString
[src]
impl<'a> PartialEq<&'a str> for SoftAsciiString
fn eq(&self, other: &&'a str) -> bool
[src]
fn eq(&self, other: &&'a str) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<'a> PartialEq<SoftAsciiString> for &'a str
[src]
impl<'a> PartialEq<SoftAsciiString> for &'a str
fn eq(&self, other: &SoftAsciiString) -> bool
[src]
fn eq(&self, other: &SoftAsciiString) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl PartialEq<str> for SoftAsciiString
[src]
impl PartialEq<str> for SoftAsciiString
fn eq(&self, other: &str) -> bool
[src]
fn eq(&self, other: &str) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl PartialEq<String> for SoftAsciiString
[src]
impl PartialEq<String> for SoftAsciiString
fn eq(&self, other: &String) -> bool
[src]
fn eq(&self, other: &String) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl PartialEq<SoftAsciiString> for String
[src]
impl PartialEq<SoftAsciiString> for String
fn eq(&self, other: &SoftAsciiString) -> bool
[src]
fn eq(&self, other: &SoftAsciiString) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<'a> PartialEq<&'a SoftAsciiStr> for SoftAsciiString
[src]
impl<'a> PartialEq<&'a SoftAsciiStr> for SoftAsciiString
fn eq(&self, other: &&'a SoftAsciiStr) -> bool
[src]
fn eq(&self, other: &&'a SoftAsciiStr) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<'a> PartialEq<SoftAsciiString> for Cow<'a, str>
[src]
impl<'a> PartialEq<SoftAsciiString> for Cow<'a, str>
fn eq(&self, other: &SoftAsciiString) -> bool
[src]
fn eq(&self, other: &SoftAsciiString) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<'a> PartialEq<Cow<'a, str>> for SoftAsciiString
[src]
impl<'a> PartialEq<Cow<'a, str>> for SoftAsciiString
fn eq(&self, other: &Cow<'a, str>) -> bool
[src]
fn eq(&self, other: &Cow<'a, str>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<'a> PartialEq<SoftAsciiString> for Cow<'a, SoftAsciiStr>
[src]
impl<'a> PartialEq<SoftAsciiString> for Cow<'a, SoftAsciiStr>
fn eq(&self, other: &SoftAsciiString) -> bool
[src]
fn eq(&self, other: &SoftAsciiString) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<'a> PartialEq<Cow<'a, SoftAsciiStr>> for SoftAsciiString
[src]
impl<'a> PartialEq<Cow<'a, SoftAsciiStr>> for SoftAsciiString
fn eq(&self, other: &Cow<'a, SoftAsciiStr>) -> bool
[src]
fn eq(&self, other: &Cow<'a, SoftAsciiStr>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl FromIterator<SoftAsciiChar> for SoftAsciiString
[src]
impl FromIterator<SoftAsciiChar> for SoftAsciiString
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = SoftAsciiChar>,
[src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = SoftAsciiChar>,
Creates a value from an iterator. Read more
impl<'a> FromIterator<&'a SoftAsciiChar> for SoftAsciiString
[src]
impl<'a> FromIterator<&'a SoftAsciiChar> for SoftAsciiString
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = &'a SoftAsciiChar>,
[src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = &'a SoftAsciiChar>,
Creates a value from an iterator. Read more
impl FromIterator<SoftAsciiString> for SoftAsciiString
[src]
impl FromIterator<SoftAsciiString> for SoftAsciiString
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = SoftAsciiString>,
[src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = SoftAsciiString>,
Creates a value from an iterator. Read more
impl<'a> FromIterator<Cow<'a, SoftAsciiStr>> for SoftAsciiString
[src]
impl<'a> FromIterator<Cow<'a, SoftAsciiStr>> for SoftAsciiString
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = Cow<'a, SoftAsciiStr>>,
[src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = Cow<'a, SoftAsciiStr>>,
Creates a value from an iterator. Read more
impl<'a> FromIterator<&'a SoftAsciiStr> for SoftAsciiString
[src]
impl<'a> FromIterator<&'a SoftAsciiStr> for SoftAsciiString
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = &'a SoftAsciiStr>,
[src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = &'a SoftAsciiStr>,
Creates a value from an iterator. Read more
impl AsRef<SoftAsciiStr> for SoftAsciiString
[src]
impl AsRef<SoftAsciiStr> for SoftAsciiString
fn as_ref(&self) -> &SoftAsciiStr
[src]
fn as_ref(&self) -> &SoftAsciiStr
Performs the conversion.
impl AsRef<str> for SoftAsciiString
[src]
impl AsRef<str> for SoftAsciiString
impl AsRef<[u8]> for SoftAsciiString
[src]
impl AsRef<[u8]> for SoftAsciiString
impl AsRef<OsStr> for SoftAsciiString
[src]
impl AsRef<OsStr> for SoftAsciiString
impl AsRef<Path> for SoftAsciiString
[src]
impl AsRef<Path> for SoftAsciiString
impl ToSocketAddrs for SoftAsciiString
[src]
impl ToSocketAddrs for SoftAsciiString
type Iter = IntoIter<SocketAddr>
Returned iterator over socket addresses which this type may correspond to. Read more
fn to_socket_addrs(&self) -> Result<IntoIter<SocketAddr>>
[src]
fn to_socket_addrs(&self) -> Result<IntoIter<SocketAddr>>
Converts this object to an iterator of resolved SocketAddr
s. Read more
impl Index<Range<usize>> for SoftAsciiString
[src]
impl Index<Range<usize>> for SoftAsciiString
type Output = SoftAsciiStr
The returned type after indexing.
fn index(&self, index: Range<usize>) -> &Self::Output
[src]
fn index(&self, index: Range<usize>) -> &Self::Output
Performs the indexing (container[index]
) operation.
impl Index<RangeFrom<usize>> for SoftAsciiString
[src]
impl Index<RangeFrom<usize>> for SoftAsciiString
type Output = SoftAsciiStr
The returned type after indexing.
fn index(&self, index: RangeFrom<usize>) -> &Self::Output
[src]
fn index(&self, index: RangeFrom<usize>) -> &Self::Output
Performs the indexing (container[index]
) operation.
impl Index<RangeTo<usize>> for SoftAsciiString
[src]
impl Index<RangeTo<usize>> for SoftAsciiString
type Output = SoftAsciiStr
The returned type after indexing.
fn index(&self, index: RangeTo<usize>) -> &Self::Output
[src]
fn index(&self, index: RangeTo<usize>) -> &Self::Output
Performs the indexing (container[index]
) operation.
impl Index<RangeFull> for SoftAsciiString
[src]
impl Index<RangeFull> for SoftAsciiString
type Output = SoftAsciiStr
The returned type after indexing.
fn index(&self, index: RangeFull) -> &Self::Output
[src]
fn index(&self, index: RangeFull) -> &Self::Output
Performs the indexing (container[index]
) operation.
impl IndexMut<Range<usize>> for SoftAsciiString
[src]
impl IndexMut<Range<usize>> for SoftAsciiString
fn index_mut(&mut self, index: Range<usize>) -> &mut Self::Output
[src]
fn index_mut(&mut self, index: Range<usize>) -> &mut Self::Output
Performs the mutable indexing (container[index]
) operation.
impl IndexMut<RangeFrom<usize>> for SoftAsciiString
[src]
impl IndexMut<RangeFrom<usize>> for SoftAsciiString
fn index_mut(&mut self, index: RangeFrom<usize>) -> &mut Self::Output
[src]
fn index_mut(&mut self, index: RangeFrom<usize>) -> &mut Self::Output
Performs the mutable indexing (container[index]
) operation.
impl IndexMut<RangeTo<usize>> for SoftAsciiString
[src]
impl IndexMut<RangeTo<usize>> for SoftAsciiString
fn index_mut(&mut self, index: RangeTo<usize>) -> &mut Self::Output
[src]
fn index_mut(&mut self, index: RangeTo<usize>) -> &mut Self::Output
Performs the mutable indexing (container[index]
) operation.
impl IndexMut<RangeFull> for SoftAsciiString
[src]
impl IndexMut<RangeFull> for SoftAsciiString
fn index_mut(&mut self, index: RangeFull) -> &mut Self::Output
[src]
fn index_mut(&mut self, index: RangeFull) -> &mut Self::Output
Performs the mutable indexing (container[index]
) operation.
impl Extend<SoftAsciiChar> for SoftAsciiString
[src]
impl Extend<SoftAsciiChar> for SoftAsciiString
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = SoftAsciiChar>,
[src]
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = SoftAsciiChar>,
Extends a collection with the contents of an iterator. Read more
impl<'a> Extend<&'a SoftAsciiChar> for SoftAsciiString
[src]
impl<'a> Extend<&'a SoftAsciiChar> for SoftAsciiString
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = &'a SoftAsciiChar>,
[src]
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = &'a SoftAsciiChar>,
Extends a collection with the contents of an iterator. Read more
impl Extend<SoftAsciiString> for SoftAsciiString
[src]
impl Extend<SoftAsciiString> for SoftAsciiString
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = SoftAsciiString>,
[src]
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = SoftAsciiString>,
Extends a collection with the contents of an iterator. Read more
impl<'a> Extend<&'a SoftAsciiStr> for SoftAsciiString
[src]
impl<'a> Extend<&'a SoftAsciiStr> for SoftAsciiString
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = &'a SoftAsciiStr>,
[src]
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = &'a SoftAsciiStr>,
Extends a collection with the contents of an iterator. Read more
impl<'a> Extend<Cow<'a, SoftAsciiStr>> for SoftAsciiString
[src]
impl<'a> Extend<Cow<'a, SoftAsciiStr>> for SoftAsciiString
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = Cow<'a, SoftAsciiStr>>,
[src]
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = Cow<'a, SoftAsciiStr>>,
Extends a collection with the contents of an iterator. Read more
impl<'a> From<Cow<'a, SoftAsciiStr>> for SoftAsciiString
[src]
impl<'a> From<Cow<'a, SoftAsciiStr>> for SoftAsciiString
fn from(cow: Cow<'a, SoftAsciiStr>) -> Self
[src]
fn from(cow: Cow<'a, SoftAsciiStr>) -> Self
Performs the conversion.
impl<'a> From<&'a SoftAsciiStr> for SoftAsciiString
[src]
impl<'a> From<&'a SoftAsciiStr> for SoftAsciiString
fn from(s: &'a SoftAsciiStr) -> Self
[src]
fn from(s: &'a SoftAsciiStr) -> Self
Performs the conversion.
impl From<Box<SoftAsciiStr>> for SoftAsciiString
[src]
impl From<Box<SoftAsciiStr>> for SoftAsciiString
fn from(b: Box<SoftAsciiStr>) -> SoftAsciiString
[src]
fn from(b: Box<SoftAsciiStr>) -> SoftAsciiString
Performs the conversion.
impl Display for SoftAsciiString
[src]
impl Display for SoftAsciiString
fn fmt(&self, fter: &mut Formatter) -> Result
[src]
fn fmt(&self, fter: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Into<Vec<u8>> for SoftAsciiString
[src]
impl Into<Vec<u8>> for SoftAsciiString
impl Into<String> for SoftAsciiString
[src]
impl Into<String> for SoftAsciiString
impl FromStr for SoftAsciiString
[src]
impl FromStr for SoftAsciiString
Auto Trait Implementations
impl Send for SoftAsciiString
impl Send for SoftAsciiString
impl Sync for SoftAsciiString
impl Sync for SoftAsciiString