support new as_ref api

This commit is contained in:
Orion Henry 2022-03-03 16:04:17 -05:00
parent bcee6a9623
commit 41512e9c78

View file

@ -125,6 +125,12 @@ macro_rules! to_result {
#[derive(Clone)]
pub struct AMobj(am::ObjId);
impl AsRef<am::ObjId> for AMobj {
fn as_ref(&self) -> &am::ObjId {
&self.0
}
}
/// \memberof AMdoc
/// \brief Allocates a new `AMdoc` struct and initializes it with defaults.
///