gear-program 0.1.4

gear program cli
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Shared traits.

/// Convert self into `String`.
pub trait Convert<T> {
    fn convert(&self) -> T;
}

impl Convert<String> for Vec<u8> {
    fn convert(&self) -> String {
        String::from_utf8_lossy(&self).to_string()
    }
}