Struct soft_ascii_string::SoftAsciiString[][src]

pub struct SoftAsciiString(_);

a String wrapper with an additional "is us-ascii" soft constraint

Methods

impl SoftAsciiString
[src]

Deprecated since 1.0.0

: use from_unchecked

impl SoftAsciiString
[src]

impl SoftAsciiString
[src]

Methods from Deref<Target = SoftAsciiStr>

reruns checks if the "is us-ascii" soft constraint is still valid

Important traits for SoftAsciiLines<'a>

Important traits for SoftAsciiSplitWhitespace<'a>

Important traits for SoftAsciiCharIndices<'a>

Important traits for SoftAsciiChars<'a>

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.

Trait Implementations

impl PartialEq<SoftAsciiString> for SoftAsciiStr
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> PartialEq<SoftAsciiString> for &'a SoftAsciiStr
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for SoftAsciiString
[src]

Formats the value using the given formatter. Read more

impl Clone for SoftAsciiString
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for SoftAsciiString
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for SoftAsciiString
[src]

impl PartialOrd for SoftAsciiString
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

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]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Hash for SoftAsciiString
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Default for SoftAsciiString
[src]

Returns the "default value" for a type. Read more

impl Borrow<str> for SoftAsciiString
[src]

Immutably borrows from an owned value. Read more

impl Borrow<SoftAsciiStr> for SoftAsciiString
[src]

Immutably borrows from an owned value. Read more

impl Deref for SoftAsciiString
[src]

The resulting type after dereferencing.

Dereferences the value.

impl DerefMut for SoftAsciiString
[src]

Mutably dereferences the value.

impl<'a> AddAssign<&'a SoftAsciiStr> for SoftAsciiString
[src]

Performs the += operation.

impl<'a> Add<&'a SoftAsciiStr> for SoftAsciiString
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl PartialEq<SoftAsciiString> for str
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> PartialEq<&'a str> for SoftAsciiString
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> PartialEq<SoftAsciiString> for &'a str
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialEq<str> for SoftAsciiString
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialEq<String> for SoftAsciiString
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialEq<SoftAsciiString> for String
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> PartialEq<&'a SoftAsciiStr> for SoftAsciiString
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> PartialEq<SoftAsciiString> for Cow<'a, str>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> PartialEq<Cow<'a, str>> for SoftAsciiString
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> PartialEq<SoftAsciiString> for Cow<'a, SoftAsciiStr>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> PartialEq<Cow<'a, SoftAsciiStr>> for SoftAsciiString
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl FromIterator<SoftAsciiChar> for SoftAsciiString
[src]

Creates a value from an iterator. Read more

impl<'a> FromIterator<&'a SoftAsciiChar> for SoftAsciiString
[src]

Creates a value from an iterator. Read more

impl FromIterator<SoftAsciiString> for SoftAsciiString
[src]

Creates a value from an iterator. Read more

impl<'a> FromIterator<Cow<'a, SoftAsciiStr>> for SoftAsciiString
[src]

Creates a value from an iterator. Read more

impl<'a> FromIterator<&'a SoftAsciiStr> for SoftAsciiString
[src]

Creates a value from an iterator. Read more

impl AsRef<SoftAsciiStr> for SoftAsciiString
[src]

Performs the conversion.

impl AsRef<str> for SoftAsciiString
[src]

Performs the conversion.

impl AsRef<[u8]> for SoftAsciiString
[src]

Performs the conversion.

impl AsRef<OsStr> for SoftAsciiString
[src]

Performs the conversion.

impl AsRef<Path> for SoftAsciiString
[src]

Performs the conversion.

impl ToSocketAddrs for SoftAsciiString
[src]

Returned iterator over socket addresses which this type may correspond to. Read more

Converts this object to an iterator of resolved SocketAddrs. Read more

impl Index<Range<usize>> for SoftAsciiString
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl Index<RangeFrom<usize>> for SoftAsciiString
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl Index<RangeTo<usize>> for SoftAsciiString
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl Index<RangeFull> for SoftAsciiString
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl IndexMut<Range<usize>> for SoftAsciiString
[src]

Performs the mutable indexing (container[index]) operation.

impl IndexMut<RangeFrom<usize>> for SoftAsciiString
[src]

Performs the mutable indexing (container[index]) operation.

impl IndexMut<RangeTo<usize>> for SoftAsciiString
[src]

Performs the mutable indexing (container[index]) operation.

impl IndexMut<RangeFull> for SoftAsciiString
[src]

Performs the mutable indexing (container[index]) operation.

impl Extend<SoftAsciiChar> for SoftAsciiString
[src]

Extends a collection with the contents of an iterator. Read more

impl<'a> Extend<&'a SoftAsciiChar> for SoftAsciiString
[src]

Extends a collection with the contents of an iterator. Read more

impl Extend<SoftAsciiString> for SoftAsciiString
[src]

Extends a collection with the contents of an iterator. Read more

impl<'a> Extend<&'a SoftAsciiStr> for SoftAsciiString
[src]

Extends a collection with the contents of an iterator. Read more

impl<'a> Extend<Cow<'a, SoftAsciiStr>> for SoftAsciiString
[src]

Extends a collection with the contents of an iterator. Read more

impl<'a> From<Cow<'a, SoftAsciiStr>> for SoftAsciiString
[src]

Performs the conversion.

impl<'a> From<&'a SoftAsciiStr> for SoftAsciiString
[src]

Performs the conversion.

impl From<Box<SoftAsciiStr>> for SoftAsciiString
[src]

Performs the conversion.

impl Display for SoftAsciiString
[src]

Formats the value using the given formatter. Read more

impl Into<Vec<u8>> for SoftAsciiString
[src]

Performs the conversion.

impl Into<String> for SoftAsciiString
[src]

Performs the conversion.

impl FromStr for SoftAsciiString
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Auto Trait Implementations