Add example, rename Ctx fn, make things pub(crate), misc changes

This commit is contained in:
Mark McCaskey
2019-09-18 16:43:47 -07:00
parent 5741a2cf70
commit ccd369ff0c
9 changed files with 90 additions and 11 deletions

View File

@ -44,7 +44,7 @@ impl<'a> From<DynFunc<'a>> for Anyfunc<'a> {
}
pub struct AnyfuncTable {
pub backing: Vec<vm::Anyfunc>,
pub(crate) backing: Vec<vm::Anyfunc>,
max: Option<u32>,
}

View File

@ -9,7 +9,8 @@ use std::{cell::RefCell, fmt, ptr, rc::Rc};
mod anyfunc;
pub use self::anyfunc::{Anyfunc, AnyfuncTable};
pub use self::anyfunc::Anyfunc;
pub(crate) use self::anyfunc::AnyfuncTable;
use crate::error::GrowError;
pub enum Element<'a> {