INNER CODE UNIT · Rust
double_lines
lemunozm/ruscii · src/drawing.rs:67
pub fn double_lines() -> RectCharset {
RectCharset::from("══║║╔╗╚╝")
}
}
impl From<&str> for RectCharset {
/// A utility function that generates a [`RectCharset`] from the characters in a `&str`.
///
/// # Panics
///
/// This function will `panic!` if the given `item` is a `&str` of fewer than 8 characters.
fn from(item: &str) -> Self {
if item.len() < 8 {
panic!("Build a RectCharset requires at least 8 characters.");
}
let mut chars = item.chars();
RectCharset {