impl AsRef<Self> for primitives
This commit is contained in:
parent
7e3a4fb4aa
commit
3eba48bc15
|
@ -51,6 +51,13 @@ macro_rules! construct_hash {
|
|||
}
|
||||
}
|
||||
|
||||
impl AsRef<$from> for $from {
|
||||
#[inline]
|
||||
fn as_ref(&self) -> &$from {
|
||||
&self
|
||||
}
|
||||
}
|
||||
|
||||
impl ::core::ops::DerefMut for $from {
|
||||
#[inline]
|
||||
fn deref_mut(&mut self) -> &mut [u8] {
|
||||
|
|
Loading…
Reference in New Issue