mirror of
https://gitlab.com/arnekeller/ascii-table.git
synced 2024-12-04 21:49:08 +00:00
save game
This commit is contained in:
parent
a73e029385
commit
d4beb16845
@ -48,8 +48,9 @@ pub struct ColumnConfig {
|
||||
|
||||
impl ColumnConfig {
|
||||
|
||||
pub fn new(header: String, align: Align) -> Self {
|
||||
Self { header, align }
|
||||
pub fn new<T>(header: T, align: Align) -> Self
|
||||
where T: AsRef<str> {
|
||||
Self { header: header.as_ref().to_string(), align }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user