ref(symcache): Implement AsSelf for new symcache
use std::convert::TryInto;
use std::{mem, ptr};
-use symbolic_common::{Arch, DebugId};
+use symbolic_common::{Arch, AsSelf, DebugId};
mod compat;
mod error;
@@ -178,3 +178,11 @@ impl<'data> SymCache<'data> {
self.header.debug_id
}
}
+
+impl<'slf, 'd: 'slf> AsSelf<'slf> for SymCache<'d> {
+ type Ref = SymCache<'slf>;
+
+ fn as_self(&'slf self) -> &Self::Ref {
+ self
+ }
+}
