pub struct HexUuidCodec;Expand description
A lossless codec: the UUID as 32 lowercase hex digits, no hyphens.
Meant for tests and for brokers whose field holds at least 128 bits. decode
is more tolerant than encode: it also reads the hyphenated form and capital letters.
§Examples
use brokapi_core::{CidCodec, Charset, HexUuidCodec};
let caps = HexUuidCodec.caps();
assert!(caps.lossless);
assert_eq!(caps.max_len, 32);
assert_eq!(caps.charset, Charset::HexLower);Trait Implementations§
Source§impl CidCodec for HexUuidCodec
impl CidCodec for HexUuidCodec
Source§impl Clone for HexUuidCodec
impl Clone for HexUuidCodec
Source§fn clone(&self) -> HexUuidCodec
fn clone(&self) -> HexUuidCodec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HexUuidCodec
Source§impl Debug for HexUuidCodec
impl Debug for HexUuidCodec
Source§impl Default for HexUuidCodec
impl Default for HexUuidCodec
Source§fn default() -> HexUuidCodec
fn default() -> HexUuidCodec
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HexUuidCodec
impl RefUnwindSafe for HexUuidCodec
impl Send for HexUuidCodec
impl Sync for HexUuidCodec
impl Unpin for HexUuidCodec
impl UnsafeUnpin for HexUuidCodec
impl UnwindSafe for HexUuidCodec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more