Struct raw_string::RawString[][src]

pub struct RawString { /* fields omitted */ }

A String with unchecked contents.

It is basically a Vec<u8>, to be interpreted as string. Unlike String, there are no guarantees about the contents being valid UTF-8. Unlike Vec<u8>, its Display and Debug implementations show a string, not an array of numbers.

Very similar to the Unix implementation of OsString.

Methods

impl RawString
[src]

Methods from Deref<Target = RawStr>

Trait Implementations

impl Default for RawString
[src]

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

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

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

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

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

impl Deref for RawString
[src]

The resulting type after dereferencing.

Dereferences the value.

impl DerefMut for RawString
[src]

Mutably dereferences the value.

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

The returned type after indexing.

Performs the indexing (container[index]) operation.

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

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

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

The returned type after indexing.

Performs the indexing (container[index]) operation.

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

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

impl Index<RangeFull> for RawString
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl IndexMut<RangeFull> for RawString
[src]

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

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

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl IndexMut<RangeInclusive<usize>> for RawString
[src]

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

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

The returned type after indexing.

Performs the indexing (container[index]) operation.

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

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

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

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl IndexMut<RangeToInclusive<usize>> for RawString
[src]

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

impl Borrow<RawStr> for RawString
[src]

Immutably borrows from an owned value. Read more

impl AsRef<RawStr> for RawString
[src]

Performs the conversion.

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

Performs the conversion.

impl Display for RawString
[src]

Formats the value using the given formatter. Read more

impl Debug for RawString
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for RawString

impl Sync for RawString