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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Cat
[src]

impl Add<Cat> for Cat
[src]

The resulting type after applying the + operator

The method for the + operator

impl<T: CatItem> Add<CatOne<T>> for Cat
[src]

The resulting type after applying the + operator

The method for the + operator

impl<T: CatItem> Add<T> for Cat
[src]

The resulting type after applying the + operator

The method for the + operator

impl Debug for Cat
[src]

Formats the value using the given formatter.

impl Display for Cat
[src]

Formats the value using the given formatter. Read more