Crate rdenticon Copy item path Source pub use ril ;
Config Configuration variables for rendering identicons. ConfigBuilder A builder for Config
s. Rgb Represents an RGB pixel. Rgba Represents an RGBA pixel. ConfigBuilderError An error that occurs when building a Config
.
See ConfigBuilder::build
for more information. ImageFormat Represents the underlying encoding format of an image. NormalizableRange A trait implemented by ranges that can be normalized to inclusive ranges within the range
0.0..=1.0
. generate_identicon Generates an identicon for the given message. The message can be something like a username or a
unique key. render_identicon Renders an identicon for the given hash. The hash is strictly 20-bytes long. If your hash is
shorter, you should pad it. Similarly, if your hash is longer, you should truncate it.