Struct multistr::StringTriple
[−]
[src]
pub struct StringTriple { /* fields omitted */ }
Immutable triple of strings stored on the heap in the same buffer.
Methods
impl StringTriple
[src]
fn new<S1: Into<String>, S2: AsRef<str>, S3: AsRef<str>>(s1: S1,
s2: S2,
s3: S3)
-> StringTriple
s2: S2,
s3: S3)
-> StringTriple
Creates a StringTriple
from a triple of strings.
fn from_raw<S: Into<String>>(string: S,
lsplit: usize,
rsplit: usize)
-> StringTriple
lsplit: usize,
rsplit: usize)
-> StringTriple
Creates a StringTriple
from a string and split indices.
unsafe fn from_raw_unchecked<S: Into<String>>(string: S,
lsplit: usize,
rsplit: usize)
-> StringTriple
lsplit: usize,
rsplit: usize)
-> StringTriple
Creates a StringTriple
from a string and split indices without checking the indices.
fn left(&self) -> &str
Gets the first string in the triple.
fn middle(&self) -> &str
Gets the second string in the triple.
fn right(&self) -> &str
Gets the third string in the triple.
Trait Implementations
impl Eq for StringTriple
[src]
impl PartialEq for StringTriple
[src]
fn eq(&self, __arg_0: &StringTriple) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &StringTriple) -> bool
This method tests for !=
.
impl Clone for StringTriple
[src]
fn clone(&self) -> StringTriple
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for StringTriple
[src]
fn default() -> StringTriple
Returns the "default value" for a type. Read more
impl Hash for StringTriple
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl<S1: Into<String>, S2: AsRef<str>, S3: AsRef<str>> From<(S1, S2, S3)> for StringTriple
[src]
fn from((s1, s2, s3): (S1, S2, S3)) -> StringTriple
Performs the conversion.
impl PartialOrd for StringTriple
[src]
fn partial_cmp(&self, rhs: &StringTriple) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for StringTriple
[src]
fn cmp(&self, rhs: &StringTriple) -> Ordering
This method returns an Ordering
between self
and other
. Read more