Diffstat (limited to 'src/build.rs')
| -rw-r--r-- | src/build.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/build.rs b/src/build.rs index bb210f8..fa382b6 100644 --- a/src/build.rs +++ b/src/build.rs @@ -13,11 +13,11 @@ use crate::protocol::AsVisitor; /// /// There can be one canonical builder per mode. The mode is specified by the `M` generic and /// can be any type. It is only used as a type level tag. -pub trait Build<'lt, 'ctx, M, E: Environment>: Sized { +pub trait Build<'src, M, E: Environment>: Sized { /// The canonical builder for mode `M`. /// /// This builder will build values of type `Self`. - type Builder: Builder<'lt, 'ctx, E, Value = Self>; + type Builder: Builder<'src, E, Value = Self>; } pub trait BuilderTypes<C: SsBound> { @@ -47,18 +47,18 @@ pub trait BuilderTypes<C: SsBound> { /// the builder with data from it's walk. /// - Call [`Self::build()`] to finish building the value and get any errors /// that happened during filling it with data. -pub trait Builder<'lt, 'ctx, E: Environment>: - DynBind<E> + AsVisitor<'lt, 'ctx, E> + BuilderTypes<E> + Sized +pub trait Builder<'src, E: Environment>: + DynBind<E> + AsVisitor<'src, E> + BuilderTypes<E> + Sized { - fn from_seed<'a>(seed: Self::Seed) -> Canonical<'a, Self, E> + fn from_seed<'u>(seed: Self::Seed) -> Canonical<'u, Self, E> where - Self: 'a; + Self: 'u; /// Finish the value. /// /// If an error happened with the builder during the walk /// it will be reported here. - fn build<'a>(self) -> Canonical<'a, Result<Self::Output, Self::Error>, E> + fn build<'u>(self) -> Canonical<'u, Result<Self::Output, Self::Error>, E> where - Self: 'a; + Self: 'u; } |