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() 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 let trait_impls: proc_macro2::TokenStream = input
.attrs .attrs

View file

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

View file

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

View file

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

View file

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

View file

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