pub struct EncodeLeaf<'b, B: Buffer> { /* private fields */ }
Expand description
Encodes a leaf (bytestring)
Implementations§
Source§impl<'b, B: Buffer> EncodeLeaf<'b, B>
impl<'b, B: Buffer> EncodeLeaf<'b, B>
Sourcepub fn set_tag(&mut self, tag: &'b [u8])
pub fn set_tag(&mut self, tag: &'b [u8])
Specifies a domain separation tag
Tag will be unambiguously encoded
Sourcepub fn with_tag(self, tag: &'b [u8]) -> Self
pub fn with_tag(self, tag: &'b [u8]) -> Self
Specifies a domain separation tag
Tag will be unambiguously encoded
Sourcepub fn chain(self, bytes: impl AsRef<[u8]>) -> Self
pub fn chain(self, bytes: impl AsRef<[u8]>) -> Self
Chains a bytestring
Encoded value will correspond to concatenation of all the chained bytestrings
Trait Implementations§
Auto Trait Implementations§
impl<'b, B> Freeze for EncodeLeaf<'b, B>
impl<'b, B> RefUnwindSafe for EncodeLeaf<'b, B>where
B: RefUnwindSafe,
impl<'b, B> Send for EncodeLeaf<'b, B>where
B: Send,
impl<'b, B> Sync for EncodeLeaf<'b, B>where
B: Sync,
impl<'b, B> Unpin for EncodeLeaf<'b, B>
impl<'b, B> !UnwindSafe for EncodeLeaf<'b, B>
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