Diffstat (limited to 'src/build.rs')
| -rw-r--r-- | src/build.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/build.rs b/src/build.rs index 3ce2b68..293e395 100644 --- a/src/build.rs +++ b/src/build.rs @@ -1,12 +1,14 @@ +use core::fmt::{Debug, Display}; pub mod builders; use crate::{ - effect::{Effect, ErasedEffective}, + effect::{Effect, EffectiveExt as _, ErasedEffective}, protocol::DynVisitor, + transform, Walker, WalkerTypes, }; /// A buildable type. -pub trait Build<'ctx, M, E: Effect>: Send + Sync { +pub trait Build<'ctx, M: 'ctx, E: Effect>: Sized + Send + Sync { /// The builder that can be used to build a value of `Self`. type Builder: Builder<'ctx, E, Value = Self>; } @@ -15,7 +17,7 @@ pub trait BuilderTypes { type Seed: Send + Sync; /// Error that can happen during filling the builder with data. - type Error: Send + Sync; + type Error: Send + Sync + Debug + Display; /// Type to be built. type Value: Send + Sync; |