Struct omgwtf8::OmgWtf8 [] [src]

pub struct OmgWtf8(_);

An OMG-WTF-8 string.

Methods

impl OmgWtf8
[src]

[src]

Obtains the length of this string.

[src]

impl OmgWtf8
[src]

[src]

Creates a new OMG-WTF-8 string from a UTF-8 string.

[src]

If this string is valid UTF-8, returns this string cast to a &str.

If this string contains unpaired surrogates, returns None.

[src]

Converts from UCS-2 to OMG-WTF-8.

[src]

Trait Implementations

impl Index<RangeFull> for OmgWtf8
[src]

Allows OMG-WTF-8 strings be sliced using s[..].

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

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

Allows OMG-WTF-8 strings be sliced using s[..j].

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

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

Allows OMG-WTF-8 strings be sliced using s[i..].

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

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

Allows OMG-WTF-8 strings be sliced using s[i..j].

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

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

[src]

Performs the conversion.

impl Debug for OmgWtf8
[src]

[src]

Formats the value using the given formatter.

impl Eq for OmgWtf8
[src]

Two OMG-WTF-8 strings can be compared for equality.

impl PartialEq for OmgWtf8
[src]

Two OMG-WTF-8 strings can be compared for partial equality.

[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 Ord for OmgWtf8
[src]

Two OMG-WTF-8 strings can be totally ordered.

Note that the exact ordering is unspecified when unpaired surrogate exists.

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

Two OMG-WTF-8 strings can be partially ordered.

[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

impl Hash for OmgWtf8
[src]

An OMG-WTF-8 string can be hashed for use in HashMap and HashSet.

[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<'p, 'h> Pattern<&'h OmgWtf8> for &'p OmgWtf8
[src]

[src]

[src]

impl<'h> Haystack for &'h OmgWtf8
[src]

If the haystack is treated as an &[T] slice, the cursor’s type should be *const T. Read more

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]