Union istring::IString [] [src]

pub union IString {
    // some fields omitted
}

Methods

impl IString
[src]

view as Inline.

Panics if the string isn't inlined

view as Heap.

Panics if the string isn't on the Heap

un-inline the string and expand the capacity to cap.

does nothing if it isn't inlined. panics, if cap < self.len()

if the strings fits inline, make it inline, otherwhise shrink the capacity to the self.len().

Trait Implementations

impl Drop for IString
[src]

A method called when the value goes out of scope. Read more

impl Deref for IString
[src]

The resulting type after dereferencing

The method called to dereference a value

impl Debug for IString
[src]

Formats the value using the given formatter.

impl Display for IString
[src]

Formats the value using the given formatter. Read more

impl<'a> From<&'a str> for IString
[src]

Performs the conversion.

impl From<String> for IString
[src]

Performs the conversion.

impl Into<String> for IString
[src]

Performs the conversion.

impl Clone for IString
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq<str> for IString
[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 IString
[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 IString
[src]

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

This method tests for !=.

impl PartialEq for IString
[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 IString
[src]

impl PartialOrd for IString
[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 IString
[src]

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

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the maximum of two values. Read more

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the minimum of two values. Read more

impl Write for IString
[src]

Writes a slice of bytes into this writer, returning whether the write succeeded. Read more

Writes a [char] into this writer, returning whether the write succeeded. Read more

Glue for usage of the [write!] macro with implementors of this trait. Read more

impl Extend<char> for IString
[src]

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

impl<'a> Extend<&'a char> for IString
[src]

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

impl<'a> Extend<&'a str> for IString
[src]

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

impl<'a> Extend<Cow<'a, str>> for IString
[src]

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

impl Default for IString
[src]

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

impl Hash for IString
[src]

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

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

impl<'a> Add<&'a str> for IString
[src]

The resulting type after applying the + operator

The method for the + operator

impl<'a> AddAssign<&'a str> for IString
[src]

The method for the += operator

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

The returned type after indexing

The method for the indexing (container[index]) operation

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

The returned type after indexing

The method for the indexing (container[index]) operation

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

The returned type after indexing

The method for the indexing (container[index]) operation

impl Index<RangeFull> for IString
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl Index<RangeInclusive<usize>> for IString
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl Index<RangeToInclusive<usize>> for IString
[src]

The returned type after indexing

The method for the indexing (container[index]) operation