Fork channel

Create a new channel as a copy of main.

Rename channel

Rename main to:

Delete channel

Delete main? This cannot be undone.

string.rs
//! Implementations of `Localize` for various string types

use std::borrow::Cow;

use crate::{Context, Localize};

macro_rules! impl_string {
    ($string_type:ty) => {
        impl Localize for $string_type {
            fn localize(&self, _context: &Context, buffer: &mut String) {
                buffer.push_str(self.as_ref());
            }
        }
    };
}

impl_string!(String);
impl_string!(&str);
impl_string!(Box<str>);
impl_string!(Cow<'_, str>);