Trait SnowflakeBase32Ext

Source
pub trait SnowflakeBase32Ext: Snowflake + Sized
where Self::Ty: BeBytes,
{ // Provided methods fn encode(&self) -> String { ... } fn decode(s: &str) -> Result<Self> { ... } }
Expand description

A trait for types that can be encoded to and decoded from base32 (crockford) strings.

Provided Methods§

Source

fn encode(&self) -> String

Source

fn decode(s: &str) -> Result<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<ID> SnowflakeBase32Ext for ID
where ID: Snowflake + Sized, ID::Ty: BeBytes,