short-uuid 0.2.1

A library to generate and parse short uuids
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::fmt;

use crate::{ShortUuid, ShortUuidCustom};

impl fmt::Display for ShortUuid {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        String::from_utf8(self.0.to_vec()).unwrap().fmt(f)
    }
}

impl fmt::Display for ShortUuidCustom {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        String::from_utf8(self.0.to_vec()).unwrap().fmt(f)
    }
}