pub struct ByteComparableEncoder { /* private fields */ }Expand description
CEP-25 compliant byte-comparable key encoder
Implements the byte-comparable key encoding as specified in CEP-25. The encoding ensures that lexicographic comparison of the encoded bytes produces the same ordering as the typed comparison of the original values.
Implementations§
Source§impl ByteComparableEncoder
impl ByteComparableEncoder
Sourcepub fn with_config(config: EncoderConfig) -> Self
pub fn with_config(config: EncoderConfig) -> Self
Create new encoder with custom configuration
Sourcepub fn config(&self) -> &EncoderConfig
pub fn config(&self) -> &EncoderConfig
Get current configuration
Sourcepub fn set_config(&mut self, config: EncoderConfig)
pub fn set_config(&mut self, config: EncoderConfig)
Set new configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ByteComparableEncoder
impl RefUnwindSafe for ByteComparableEncoder
impl Send for ByteComparableEncoder
impl Sync for ByteComparableEncoder
impl Unpin for ByteComparableEncoder
impl UnsafeUnpin for ByteComparableEncoder
impl UnwindSafe for ByteComparableEncoder
Blanket Implementations§
impl<T> Allocation for T
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