Struct sconcat::Cat
[−]
[src]
pub struct Cat;
A term that is used to start a string concatenation.
See the crate documentation.
Examples
use sconcat::Cat; let cat = Cat + "Hello, " + "world! " + '☺'; let s = String::from(cat); assert_eq!(s, "Hello, world! ☺"); let mut s2 = String::from("Hello"); s2 += Cat + ',' + " world" + String::from("! ") + '☺'; assert_eq!(s2, "Hello, world! ☺");
Trait Implementations
impl Clone for Cat
[src]
fn clone(&self) -> Cat
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 Copy for Cat
[src]
impl Add<Cat> for Cat
[src]
type Output = Cat
The resulting type after applying the +
operator
fn add(self, _rhs: Cat) -> Cat
The method for the +
operator
impl<T: CatItem> Add<CatOne<T>> for Cat
[src]
type Output = CatOne<T>
The resulting type after applying the +
operator
fn add(self, rhs: CatOne<T>) -> CatOne<T>
The method for the +
operator
impl<T: CatItem> Add<T> for Cat
[src]
type Output = CatOne<T>
The resulting type after applying the +
operator
fn add(self, rhs: T) -> CatOne<T>
The method for the +
operator