support new as_ref api
This commit is contained in:
parent
bcee6a9623
commit
41512e9c78
1 changed files with 6 additions and 0 deletions
|
@ -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.
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue