Struct soft_ascii_string::SoftAsciiStr [−][src]
pub struct SoftAsciiStr(_);
A str wrapper adding a "is us-ascii" soft constraint.
This means that it should be ascii but is not guaranteed to be ascii. Which means non ascii chars are not a safety issue just a potential bug.
This is useful for situations where:
- you would have many unsafe from str conversions/"unnecessary" checks with a strict AsciiStr
- you rarely have to strictly rely on the value being ascii
Note
Some functions which should be implemented directly
on SoftAsciiStr like e.g. trim_matches are only
provided through .as_str(). This
is because the Pattern API and SliceIndex API is unstable
i.e. can only be implemented in unstable for now.
Once it gets stabilized (rust #27721/#35729) implementations
can be added
Methods
impl SoftAsciiStr[src]
impl SoftAsciiStrpub fn from_unchecked(s: &str) -> &SoftAsciiStr[src]
pub fn from_unchecked(s: &str) -> &SoftAsciiStrpub fn from_str_unchecked(s: &str) -> &SoftAsciiStr[src]
pub fn from_str_unchecked(s: &str) -> &SoftAsciiStr: use from_unchecked
pub fn from_unchecked_mut(s: &mut str) -> &mut SoftAsciiStr[src]
pub fn from_unchecked_mut(s: &mut str) -> &mut SoftAsciiStrpub fn from_str(source: &str) -> Result<&Self, FromSourceError<&str>>[src]
pub fn from_str(source: &str) -> Result<&Self, FromSourceError<&str>>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) -> &strpub fn into_soft_ascii_string(self: Box<SoftAsciiStr>) -> SoftAsciiString[src]
pub fn into_soft_ascii_string(self: Box<SoftAsciiStr>) -> SoftAsciiStringpub fn from_boxed_str(bs: Box<str>) -> Box<SoftAsciiStr>[src]
pub fn from_boxed_str(bs: Box<str>) -> Box<SoftAsciiStr>pub fn into_boxed_str(self: Box<SoftAsciiStr>) -> Box<str>[src]
pub fn into_boxed_str(self: Box<SoftAsciiStr>) -> Box<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) -> SoftAsciiCharspub 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) -> &SoftAsciiStrpub fn inner_str_mut(&mut self) -> &mut str[src]
pub fn inner_str_mut(&mut self) -> &mut strreturns 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, impl SoftAsciiStr[src]
impl SoftAsciiStrpub fn to_lowercase(&self) -> SoftAsciiString[src]
pub fn to_lowercase(&self) -> SoftAsciiStringimpl SoftAsciiStr[src]
impl SoftAsciiStrpub fn to_uppercase(&self) -> SoftAsciiString[src]
pub fn to_uppercase(&self) -> SoftAsciiStringimpl SoftAsciiStr[src]
impl SoftAsciiStrpub fn repeat(&self, n: usize) -> SoftAsciiString[src]
pub fn repeat(&self, n: usize) -> SoftAsciiStringimpl SoftAsciiStr[src]
impl SoftAsciiStrpub fn trim_right(&self) -> &SoftAsciiStr[src]
pub fn trim_right(&self) -> &SoftAsciiStrpub fn trim_left(&self) -> &SoftAsciiStr[src]
pub fn trim_left(&self) -> &SoftAsciiStrpub fn trim(&self) -> &SoftAsciiStr[src]
pub fn trim(&self) -> &SoftAsciiStrimpl SoftAsciiStr[src]
impl SoftAsciiStrpub fn len(&self) -> usize[src]
pub fn len(&self) -> usizepub fn is_empty(&self) -> bool[src]
pub fn is_empty(&self) -> boolpub fn is_char_boundary(&self, index: usize) -> bool[src]
pub fn is_char_boundary(&self, index: usize) -> boolpub fn as_ptr(&self) -> *const u8[src]
pub fn as_ptr(&self) -> *const u8pub fn encode_utf16(&self) -> EncodeUtf16[src]
pub fn encode_utf16(&self) -> EncodeUtf16pub fn is_ascii(&self) -> bool[src]
pub fn is_ascii(&self) -> boolpub fn as_bytes(&self) -> &[u8][src]
pub fn as_bytes(&self) -> &[u8]Trait Implementations
impl Debug for SoftAsciiStr[src]
impl Debug for SoftAsciiStrfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for SoftAsciiStr[src]
impl PartialEq for SoftAsciiStrfn eq(&self, other: &SoftAsciiStr) -> bool[src]
fn eq(&self, other: &SoftAsciiStr) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &SoftAsciiStr) -> bool[src]
fn ne(&self, other: &SoftAsciiStr) -> boolThis method tests for !=.
impl Eq for SoftAsciiStr[src]
impl Eq for SoftAsciiStrimpl PartialOrd for SoftAsciiStr[src]
impl PartialOrd for SoftAsciiStrfn partial_cmp(&self, other: &SoftAsciiStr) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &SoftAsciiStr) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &SoftAsciiStr) -> bool[src]
fn lt(&self, other: &SoftAsciiStr) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &SoftAsciiStr) -> bool[src]
fn le(&self, other: &SoftAsciiStr) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &SoftAsciiStr) -> bool[src]
fn gt(&self, other: &SoftAsciiStr) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &SoftAsciiStr) -> bool[src]
fn ge(&self, other: &SoftAsciiStr) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for SoftAsciiStr[src]
impl Ord for SoftAsciiStrfn cmp(&self, other: &SoftAsciiStr) -> Ordering[src]
fn cmp(&self, other: &SoftAsciiStr) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Hash for SoftAsciiStr[src]
impl Hash for SoftAsciiStrfn 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 AsRef<SoftAsciiStr> for SoftAsciiStr[src]
impl AsRef<SoftAsciiStr> for SoftAsciiStrimpl AsRef<str> for SoftAsciiStr[src]
impl AsRef<str> for SoftAsciiStrimpl AsRef<[u8]> for SoftAsciiStr[src]
impl AsRef<[u8]> for SoftAsciiStrimpl<'a> Default for &'a SoftAsciiStr[src]
impl<'a> Default for &'a SoftAsciiStrfn default() -> &'a SoftAsciiStr[src]
fn default() -> &'a SoftAsciiStrReturns the "default value" for a type. Read more
impl Display for SoftAsciiStr[src]
impl Display for SoftAsciiStrfn fmt(&self, fter: &mut Formatter) -> Result[src]
fn fmt(&self, fter: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Index<Range<usize>> for SoftAsciiStr[src]
impl Index<Range<usize>> for SoftAsciiStrtype Output = SoftAsciiStr
The returned type after indexing.
fn index(&self, index: Range<usize>) -> &Self::Output[src]
fn index(&self, index: Range<usize>) -> &Self::OutputPerforms the indexing (container[index]) operation.
impl Index<RangeFrom<usize>> for SoftAsciiStr[src]
impl Index<RangeFrom<usize>> for SoftAsciiStrtype Output = SoftAsciiStr
The returned type after indexing.
fn index(&self, index: RangeFrom<usize>) -> &Self::Output[src]
fn index(&self, index: RangeFrom<usize>) -> &Self::OutputPerforms the indexing (container[index]) operation.
impl Index<RangeTo<usize>> for SoftAsciiStr[src]
impl Index<RangeTo<usize>> for SoftAsciiStrtype Output = SoftAsciiStr
The returned type after indexing.
fn index(&self, index: RangeTo<usize>) -> &Self::Output[src]
fn index(&self, index: RangeTo<usize>) -> &Self::OutputPerforms the indexing (container[index]) operation.
impl Index<RangeFull> for SoftAsciiStr[src]
impl Index<RangeFull> for SoftAsciiStrtype Output = SoftAsciiStr
The returned type after indexing.
fn index(&self, index: RangeFull) -> &Self::Output[src]
fn index(&self, index: RangeFull) -> &Self::OutputPerforms the indexing (container[index]) operation.
impl ToOwned for SoftAsciiStr[src]
impl ToOwned for SoftAsciiStrtype Owned = SoftAsciiString
fn to_owned(&self) -> SoftAsciiString[src]
fn to_owned(&self) -> SoftAsciiStringCreates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut Self::Owned)[src]
fn clone_into(&self, target: &mut Self::Owned)🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl PartialEq<SoftAsciiString> for SoftAsciiStr[src]
impl PartialEq<SoftAsciiString> for SoftAsciiStrfn eq(&self, other: &SoftAsciiString) -> bool[src]
fn eq(&self, other: &SoftAsciiString) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a> PartialEq<SoftAsciiString> for &'a SoftAsciiStr[src]
impl<'a> PartialEq<SoftAsciiString> for &'a SoftAsciiStrfn eq(&self, other: &SoftAsciiString) -> bool[src]
fn eq(&self, other: &SoftAsciiString) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl PartialEq<SoftAsciiStr> for String[src]
impl PartialEq<SoftAsciiStr> for Stringfn eq(&self, other: &SoftAsciiStr) -> bool[src]
fn eq(&self, other: &SoftAsciiStr) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl PartialEq<String> for SoftAsciiStr[src]
impl PartialEq<String> for SoftAsciiStrfn eq(&self, other: &String) -> bool[src]
fn eq(&self, other: &String) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a> PartialEq<&'a SoftAsciiStr> for String[src]
impl<'a> PartialEq<&'a SoftAsciiStr> for Stringfn eq(&self, other: &&'a SoftAsciiStr) -> bool[src]
fn eq(&self, other: &&'a SoftAsciiStr) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a> PartialEq<String> for &'a SoftAsciiStr[src]
impl<'a> PartialEq<String> for &'a SoftAsciiStrfn eq(&self, other: &String) -> bool[src]
fn eq(&self, other: &String) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a> PartialEq<SoftAsciiStr> for str[src]
impl<'a> PartialEq<SoftAsciiStr> for strfn eq(&self, other: &SoftAsciiStr) -> bool[src]
fn eq(&self, other: &SoftAsciiStr) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl PartialEq<str> for SoftAsciiStr[src]
impl PartialEq<str> for SoftAsciiStrfn eq(&self, other: &str) -> bool[src]
fn eq(&self, other: &str) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a> PartialEq<SoftAsciiStr> for Cow<'a, SoftAsciiStr>[src]
impl<'a> PartialEq<SoftAsciiStr> for Cow<'a, SoftAsciiStr>fn eq(&self, other: &SoftAsciiStr) -> bool[src]
fn eq(&self, other: &SoftAsciiStr) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a> PartialEq<Cow<'a, SoftAsciiStr>> for SoftAsciiStr[src]
impl<'a> PartialEq<Cow<'a, SoftAsciiStr>> for SoftAsciiStrfn eq(&self, other: &Cow<'a, SoftAsciiStr>) -> bool[src]
fn eq(&self, other: &Cow<'a, SoftAsciiStr>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<&'b SoftAsciiStr> for Cow<'a, SoftAsciiStr>[src]
impl<'a, 'b> PartialEq<&'b SoftAsciiStr> for Cow<'a, SoftAsciiStr>fn eq(&self, other: &&'b SoftAsciiStr) -> bool[src]
fn eq(&self, other: &&'b SoftAsciiStr) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<Cow<'a, SoftAsciiStr>> for &'a SoftAsciiStr[src]
impl<'a, 'b> PartialEq<Cow<'a, SoftAsciiStr>> for &'a SoftAsciiStrfn eq(&self, other: &Cow<'a, SoftAsciiStr>) -> bool[src]
fn eq(&self, other: &Cow<'a, SoftAsciiStr>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a> PartialEq<SoftAsciiStr> for Cow<'a, str>[src]
impl<'a> PartialEq<SoftAsciiStr> for Cow<'a, str>fn eq(&self, other: &SoftAsciiStr) -> bool[src]
fn eq(&self, other: &SoftAsciiStr) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a> PartialEq<Cow<'a, str>> for SoftAsciiStr[src]
impl<'a> PartialEq<Cow<'a, str>> for SoftAsciiStrfn eq(&self, other: &Cow<'a, str>) -> bool[src]
fn eq(&self, other: &Cow<'a, str>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<&'b SoftAsciiStr> for Cow<'a, str>[src]
impl<'a, 'b> PartialEq<&'b SoftAsciiStr> for Cow<'a, str>fn eq(&self, other: &&'b SoftAsciiStr) -> bool[src]
fn eq(&self, other: &&'b SoftAsciiStr) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<Cow<'b, str>> for &'a SoftAsciiStr[src]
impl<'a, 'b> PartialEq<Cow<'b, str>> for &'a SoftAsciiStrfn eq(&self, other: &Cow<'b, str>) -> bool[src]
fn eq(&self, other: &Cow<'b, str>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl PartialEq<SoftAsciiStr> for OsString[src]
impl PartialEq<SoftAsciiStr> for OsStringfn eq(&self, other: &SoftAsciiStr) -> bool[src]
fn eq(&self, other: &SoftAsciiStr) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl PartialEq<OsString> for SoftAsciiStr[src]
impl PartialEq<OsString> for SoftAsciiStrfn eq(&self, other: &OsString) -> bool[src]
fn eq(&self, other: &OsString) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a> PartialEq<&'a SoftAsciiStr> for OsString[src]
impl<'a> PartialEq<&'a SoftAsciiStr> for OsStringfn eq(&self, other: &&'a SoftAsciiStr) -> bool[src]
fn eq(&self, other: &&'a SoftAsciiStr) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a> PartialEq<OsString> for &'a SoftAsciiStr[src]
impl<'a> PartialEq<OsString> for &'a SoftAsciiStrfn eq(&self, other: &OsString) -> bool[src]
fn eq(&self, other: &OsString) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl PartialEq<SoftAsciiStr> for OsStr[src]
impl PartialEq<SoftAsciiStr> for OsStrfn eq(&self, other: &SoftAsciiStr) -> bool[src]
fn eq(&self, other: &SoftAsciiStr) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl PartialEq<OsStr> for SoftAsciiStr[src]
impl PartialEq<OsStr> for SoftAsciiStrfn eq(&self, other: &OsStr) -> bool[src]
fn eq(&self, other: &OsStr) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl AsRef<OsStr> for SoftAsciiStr[src]
impl AsRef<OsStr> for SoftAsciiStrimpl AsRef<Path> for SoftAsciiStr[src]
impl AsRef<Path> for SoftAsciiStrimpl ToSocketAddrs for SoftAsciiStr[src]
impl ToSocketAddrs for SoftAsciiStrtype 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 SocketAddrs. Read more
impl<'a> From<&'a SoftAsciiStr> for SoftAsciiChars<'a>[src]
impl<'a> From<&'a SoftAsciiStr> for SoftAsciiChars<'a>ⓘImportant traits for SoftAsciiChars<'a>fn from(s: &'a SoftAsciiStr) -> SoftAsciiChars<'a>[src]
fn from(s: &'a SoftAsciiStr) -> SoftAsciiChars<'a>Performs the conversion.
impl<'a> From<&'a SoftAsciiStr> for SoftAsciiCharIndices<'a>[src]
impl<'a> From<&'a SoftAsciiStr> for SoftAsciiCharIndices<'a>ⓘImportant traits for SoftAsciiCharIndices<'a>fn from(s: &'a SoftAsciiStr) -> SoftAsciiCharIndices<'a>[src]
fn from(s: &'a SoftAsciiStr) -> SoftAsciiCharIndices<'a>Performs the conversion.
impl<'a> From<&'a SoftAsciiStr> for SoftAsciiLines<'a>[src]
impl<'a> From<&'a SoftAsciiStr> for SoftAsciiLines<'a>ⓘImportant traits for SoftAsciiLines<'a>fn from(s: &'a SoftAsciiStr) -> SoftAsciiLines<'a>[src]
fn from(s: &'a SoftAsciiStr) -> SoftAsciiLines<'a>Performs the conversion.
impl<'a> From<&'a SoftAsciiStr> for SoftAsciiSplitWhitespace<'a>[src]
impl<'a> From<&'a SoftAsciiStr> for SoftAsciiSplitWhitespace<'a>ⓘImportant traits for SoftAsciiSplitWhitespace<'a>fn from(s: &'a SoftAsciiStr) -> SoftAsciiSplitWhitespace<'a>[src]
fn from(s: &'a SoftAsciiStr) -> SoftAsciiSplitWhitespace<'a>Performs the conversion.
impl Borrow<SoftAsciiStr> for SoftAsciiString[src]
impl Borrow<SoftAsciiStr> for SoftAsciiStringfn borrow(&self) -> &SoftAsciiStr[src]
fn borrow(&self) -> &SoftAsciiStrImmutably borrows from an owned value. Read more
impl<'a> AddAssign<&'a SoftAsciiStr> for SoftAsciiString[src]
impl<'a> AddAssign<&'a SoftAsciiStr> for SoftAsciiStringfn 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 SoftAsciiStringtype Output = Self
The resulting type after applying the + operator.
fn add(self, other: &'a SoftAsciiStr) -> Self[src]
fn add(self, other: &'a SoftAsciiStr) -> SelfPerforms the + operation.
impl<'a> PartialEq<&'a SoftAsciiStr> for SoftAsciiString[src]
impl<'a> PartialEq<&'a SoftAsciiStr> for SoftAsciiStringfn eq(&self, other: &&'a SoftAsciiStr) -> bool[src]
fn eq(&self, other: &&'a SoftAsciiStr) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a> FromIterator<&'a SoftAsciiStr> for SoftAsciiString[src]
impl<'a> FromIterator<&'a SoftAsciiStr> for SoftAsciiStringfn 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 SoftAsciiStringfn as_ref(&self) -> &SoftAsciiStr[src]
fn as_ref(&self) -> &SoftAsciiStrPerforms the conversion.
impl<'a> Extend<&'a SoftAsciiStr> for SoftAsciiString[src]
impl<'a> Extend<&'a SoftAsciiStr> for SoftAsciiStringfn 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> From<&'a SoftAsciiStr> for SoftAsciiString[src]
impl<'a> From<&'a SoftAsciiStr> for SoftAsciiStringfn from(s: &'a SoftAsciiStr) -> Self[src]
fn from(s: &'a SoftAsciiStr) -> SelfPerforms the conversion.
Auto Trait Implementations
impl Send for SoftAsciiStr
impl Send for SoftAsciiStrimpl Sync for SoftAsciiStr
impl Sync for SoftAsciiStr