diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2021-11-24 20:45:52 +0100 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2021-11-24 20:45:52 +0100 |
commit | fab3a5aea7107688b957ffc2502ed1539c7fad70 (patch) | |
tree | ba82f8e0f5c911ee1ad1ac1183a09dbd3b0663eb /src/lib.rs | |
parent | fc6cec72aead59c1d45044e8945c5b8119eab823 (diff) | |
download | vtcol-fab3a5aea7107688b957ffc2502ed1539c7fad70.tar.gz |
add base64 output for ‘get’
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -569,7 +569,11 @@ impl Palette /* Parse scheme file */ Self::from_buffered_reader(&mut reader) - } /* [Palette::from_stdin] */ + } + + /* [Palette::from_stdin] */ + + pub fn base64(&self) -> String { base64::encode(&self.0) } } /* [impl Palette] */ impl fmt::Display for Palette |