Skip to content

Commit

Permalink
feat!: simplify SignatureFunc and add custom arg validation. (#706)
Browse files Browse the repository at this point in the history
Closes #675 but not exactly as specified in the issue - SignatureFunc is
still an enum, but something close to the desired interface is achieved.

BREAKING_CHANGES: `Extension::add_op...` methods simplified and renamed,
there is only `add_op` and `add_op_simple` now.
  • Loading branch information
ss2165 committed Nov 23, 2023
1 parent c52ed51 commit c2df319
Show file tree
Hide file tree
Showing 12 changed files with 421 additions and 329 deletions.
5 changes: 4 additions & 1 deletion src/extension.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ mod infer;
pub use infer::{infer_extensions, ExtensionSolution, InferExtensionError};

mod op_def;
pub use op_def::{CustomSignatureFunc, OpDef};
pub use op_def::{
CustomSignatureFunc, CustomValidator, OpDef, SignatureFromArgs, ValidateJustArgs,
ValidateTypeArgs,
};
mod type_def;
pub use type_def::{TypeDef, TypeDefBound};
pub mod prelude;
Expand Down
Loading

0 comments on commit c2df319

Please sign in to comment.