Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -8,18 +8,18 @@ extern crate alloc; pub mod any; -// mod build; +mod build; pub mod effect; pub mod hkt; -// pub mod macros; -// pub mod protocol; +pub mod macros; +pub mod protocol; pub mod symbol; -// mod transform; -// mod walk; +mod transform; +mod walk; -// pub use build::*; -// pub use transform::*; -// pub use walk::*; +pub use build::*; +pub use transform::*; +pub use walk::*; use symbol::Symbol; @@ -130,14 +130,14 @@ macro_rules! Walk { index: usize, value: &'ctx Self::T, visitor: $crate::protocol::DynVisitor<'a, 'ctx>, - ) -> $crate::effect::ObjSafe<'a, Result<$crate::Flow, Self::FieldError>, E> { + ) -> $crate::effect::ErasedEffective<'a, Result<$crate::Flow, Self::FieldError>, E> { mod fields { enum Fields {$($field),*} $(pub const $field: usize = Fields::$field as usize;)* } - use $crate::effect::Adapters; + use $crate::effect::Effective; match index { $(fields::$field => { @@ -154,7 +154,7 @@ macro_rules! Walk { Err(err) => { Err(FieldError(FieldErrorKind::$field(err))) } - }).into() + }).into_erased() // E::map($crate::Walker::<'ctx, E>::walk(walker, visitor), |result| match result { // Ok(_) => { @@ -165,7 +165,7 @@ macro_rules! Walk { // } // }) })* - _ => E::ready(Ok($crate::Flow::Done)).into() + _ => E::ready(Ok($crate::Flow::Done)).into_erased() } } } |