Expose ObjectPtr and ObjectPtr::new from sibiltypes
This commit is contained in:
parent
076d391d4b
commit
38be7d2eee
2 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ mod object;
|
|||
mod predicates;
|
||||
|
||||
pub use object::Object;
|
||||
pub use object::ObjectPtr;
|
||||
pub use predicates::*;
|
||||
|
||||
#[cfg(test)]
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue