Struct multistr::StringPair [] [src]

pub struct StringPair { /* fields omitted */ }

Immutable pair of strings stored on the heap in the same buffer.

Methods

impl StringPair
[src]

Creates a StringPair from a pair of strings.

Creates a StringPair from a string and split index.

Creates a StringPair from a string and split index without checking the index.

Gets the first string in the pair.

Gets the second string in the pair.

Trait Implementations

impl Eq for StringPair
[src]

impl PartialEq for StringPair
[src]

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

This method tests for !=.

impl Clone for StringPair
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for StringPair
[src]

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

impl Hash for StringPair
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl<S1: Into<String>, S2: AsRef<str>> From<(S1, S2)> for StringPair
[src]

Performs the conversion.

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

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

impl Debug for StringPair
[src]

Formats the value using the given formatter.