Stream table new columns

This commit is contained in:
euzu
2025-10-25 20:40:58 +02:00
parent 4f00234f08
commit 7c7c467f64
16 changed files with 319 additions and 49 deletions
+10
View File
@@ -127,6 +127,16 @@ pub fn humanize_snake_case(s: &str) -> String {
result
}
pub trait StringExt {
fn longest<'a>(a: &'a str, b: &'a str) -> &'a str;
}
impl StringExt for String {
fn longest<'a>(a: &'a str, b: &'a str) -> &'a str {
if a.len() >= b.len() { a } else { b }
}
}
#[cfg(test)]
mod test {
use std::collections::HashSet;