Joinable

Trait Joinable 

Source
pub trait Joinable<T> {
    type Output: Sized;

    // Required method
    fn join(&self, other: &T) -> Self::Output;
}
Expand description

Provides functionality for joining text objects together.

Required Associated Types§

Required Methods§

Source

fn join(&self, other: &T) -> Self::Output

Join an object to another object, returning an owned copy.

§Example
use stylish_stringlike::text::Joinable;
let foo = String::from("foo");
let bar = String::from("bar");
assert_eq!(foo.join(&bar), String::from("foobar"));

Implementations on Foreign Types§

Source§

impl Joinable<String> for String

Source§

type Output = String

Source§

fn join(&self, other: &String) -> Self::Output

Implementors§

Source§

impl<'a, T: Clone + Default + PartialEq> Joinable<Span<'a, T>> for Span<'a, T>

Source§

impl<T: PartialEq + Clone> Joinable<Span<'_, T>> for Spans<T>

Source§

impl<T: PartialEq + Clone> Joinable<Spans<T>> for Spans<T>