Don't forget BaseBox

This commit is contained in:
asonix 2020-03-18 17:47:56 -05:00
parent 7dda503c65
commit 3258d7e0a7
6 changed files with 13 additions and 5 deletions

View file

@ -205,6 +205,14 @@ pub fn ref_derive(input: TokenStream) -> TokenStream {
Default::default()
}
}
impl std::convert::TryFrom<#name> for BaseBox {
type Error = std::io::Error;
fn try_from(s: #name) -> Result<Self, Self::Error> {
BaseBox::from_concrete(s)
}
}
};
let trait_impls: proc_macro2::TokenStream = input
.attrs

View file

@ -27,7 +27,7 @@ use crate::{
properties::{ApObjectProperties, ObjectProperties},
Object, ObjectBox,
},
Base, Extensible, PropRefs,
Base, BaseBox, Extensible, PropRefs,
};
/// Indicates that the actor accepts the object.

View file

@ -24,7 +24,7 @@ use crate::{
properties::{ApObjectProperties, ObjectProperties},
Object, ObjectBox,
},
Base, Extensible, PropRefs,
Base, BaseBox, Extensible, PropRefs,
};
/// Describes a software application.

View file

@ -28,7 +28,7 @@ use crate::{
properties::{ApObjectProperties, ObjectProperties},
Object, ObjectBox,
},
Base, Extensible, PropRefs,
Base, BaseBox, Extensible, PropRefs,
};
/// The default `Collection` type.

View file

@ -20,7 +20,7 @@
use crate::{
ext::Ext,
link::{kind::*, properties::*, Link, LinkBox},
Base, PropRefs,
Base, BaseBox, PropRefs,
};
#[cfg(feature = "types")]

View file

@ -20,7 +20,7 @@
use crate::{
ext::Ext,
object::{kind::*, properties::*, Object, ObjectBox},
Base, Extensible, PropRefs,
Base, BaseBox, Extensible, PropRefs,
};
/// Represents any kind of multi-paragraph written work.