Struct raw_string::RawStr[][src]

pub struct RawStr { /* fields omitted */ }

A str with unchecked contents.

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

Very similar to the Unix implementation of OsStr.

Methods

impl RawStr
[src]

Trait Implementations

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

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

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

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

impl AsRef<RawStr> for RawStr
[src]

Performs the conversion.

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

Performs the conversion.

impl AsRef<RawStr> for str
[src]

Performs the conversion.

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

Performs the conversion.

impl<'a> Default for &'a RawStr
[src]

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

impl<'a> Default for &'a mut RawStr
[src]

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

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

The returned type after indexing.

Performs the indexing (container[index]) operation.

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

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

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

The returned type after indexing.

Performs the indexing (container[index]) operation.

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

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

impl Index<RangeFull> for RawStr
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl IndexMut<RangeFull> for RawStr
[src]

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

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

The returned type after indexing.

Performs the indexing (container[index]) operation.

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

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

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

The returned type after indexing.

Performs the indexing (container[index]) operation.

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

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

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

The returned type after indexing.

Performs the indexing (container[index]) operation.

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

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

impl Display for RawStr
[src]

Formats the value using the given formatter. Read more

impl Debug for RawStr
[src]

Formats the value using the given formatter. Read more

impl Borrow<RawStr> for RawString
[src]

Immutably borrows from an owned value. Read more

impl ToOwned for RawStr
[src]

Creates owned data from borrowed data, usually by cloning. Read more

🔬 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 AsRef<RawStr> for RawString
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for RawStr

impl Sync for RawStr