Struct soft_ascii_string::SoftAsciiString [] [src]

pub struct SoftAsciiString(_);

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

Methods

impl SoftAsciiString
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

impl SoftAsciiString
[src]

[src]

[src]

[src]

[src]

[src]

impl SoftAsciiString
[src]

[src]

[src]

[src]

[src]

[src]

Methods from Deref<Target = SoftAsciiStr>

[src]

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

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

returns a mutable str reference to the inner buffer

Soft Constriant

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 brakage of the soft constraint that the data should be ascii.

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl Debug for SoftAsciiString
[src]

[src]

Formats the value using the given formatter.

impl Clone for SoftAsciiString
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for SoftAsciiString
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for SoftAsciiString
[src]

impl PartialOrd for SoftAsciiString
[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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]

[src]

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl Hash for SoftAsciiString
[src]

[src]

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

1.3.0
[src]

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

impl Default for SoftAsciiString
[src]

[src]

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

impl Borrow<str> for SoftAsciiString
[src]

[src]

Immutably borrows from an owned value. Read more

impl Borrow<SoftAsciiStr> for SoftAsciiString
[src]

[src]

Immutably borrows from an owned value. Read more

impl Deref for SoftAsciiString
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl DerefMut for SoftAsciiString
[src]

[src]

Mutably dereferences the value.

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

[src]

Performs the += operation.

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

The resulting type after applying the + operator.

[src]

Performs the + operation.

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

[src]

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

1.0.0
[src]

This method tests for !=.

impl PartialEq<str> for SoftAsciiString
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl PartialEq<String> for SoftAsciiString
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

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

[src]

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

1.0.0
[src]

This method tests for !=.

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

[src]

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

1.0.0
[src]

This method tests for !=.

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

[src]

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

1.0.0
[src]

This method tests for !=.

impl FromIterator<SoftAsciiChar> for SoftAsciiString
[src]

[src]

Creates a value from an iterator. Read more

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

[src]

Creates a value from an iterator. Read more

impl FromIterator<SoftAsciiString> for SoftAsciiString
[src]

[src]

Creates a value from an iterator. Read more

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

[src]

Creates a value from an iterator. Read more

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

[src]

Creates a value from an iterator. Read more

impl AsRef<SoftAsciiStr> for SoftAsciiString
[src]

[src]

Performs the conversion.

impl AsRef<str> for SoftAsciiString
[src]

[src]

Performs the conversion.

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

[src]

Performs the conversion.

impl AsRef<OsStr> for SoftAsciiString
[src]

[src]

Performs the conversion.

impl AsRef<Path> for SoftAsciiString
[src]

[src]

Performs the conversion.

impl ToSocketAddrs for SoftAsciiString
[src]

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

[src]

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

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

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

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

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

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

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl Index<RangeFull> for SoftAsciiString
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

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

[src]

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

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

[src]

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

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

[src]

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

impl IndexMut<RangeFull> for SoftAsciiString
[src]

[src]

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

impl Extend<SoftAsciiChar> for SoftAsciiString
[src]

[src]

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

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

[src]

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

impl Extend<SoftAsciiString> for SoftAsciiString
[src]

[src]

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

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

[src]

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

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

[src]

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

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

impl Display for SoftAsciiString
[src]

[src]

Formats the value using the given formatter. Read more

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

[src]

Performs the conversion.

impl Into<String> for SoftAsciiString
[src]

[src]

Performs the conversion.

impl FromStr for SoftAsciiString
[src]

The associated error which can be returned from parsing.

[src]

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