pub struct Tag { /* private fields */ }展开描述
A HMAC tag, stored as 一个 value.
实现§
Source§impl Tag
impl Tag
Sourcepub fn new(bytes: &[u8]) -> Self
pub fn new(bytes: &[u8]) -> Self
构建 tag by copying 一个 byte slice.
此 slice can be up 到 Tag::MAX_LEN bytes in length.
Trait 实现§
自动 Trait 实现§
impl Freeze for Tag
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnsafeUnpin for Tag
impl UnwindSafe for Tag
Blanket 实现§
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 从 an owned value. 更多信息