Expose ObjectPtr and ObjectPtr::new from sibiltypes

This commit is contained in:
Eryn Wells 2017-04-23 09:23:03 -07:00
parent 076d391d4b
commit 38be7d2eee
2 changed files with 2 additions and 1 deletions

View file

@ -6,6 +6,7 @@ mod object;
mod predicates;
pub use object::Object;
pub use object::ObjectPtr;
pub use predicates::*;
#[cfg(test)]

View file

@ -40,7 +40,7 @@ pub enum Object {
}
impl ObjectPtr {
fn new(obj: Object) -> ObjectPtr { ObjectPtr::Ptr(Box::new(obj)) }
pub fn new(obj: Object) -> ObjectPtr { ObjectPtr::Ptr(Box::new(obj)) }
}
impl fmt::Display for ObjectPtr {