Add `AsMut` impl in `construct_hash` macro.
This commit is contained in:
parent
5064f859c0
commit
77c648eaad
|
@ -51,6 +51,13 @@ macro_rules! construct_hash {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl AsMut<[u8]> for $from {
|
||||||
|
#[inline]
|
||||||
|
fn as_mut(&mut self) -> &mut [u8] {
|
||||||
|
&mut self.0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl AsRef<$from> for $from {
|
impl AsRef<$from> for $from {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn as_ref(&self) -> &$from {
|
fn as_ref(&self) -> &$from {
|
||||||
|
|
Loading…
Reference in New Issue