View source on GitHub |
Adds a named "wildcard" pattern that can match anything.
Inherits From: Pattern
oryx.experimental.matching.matcher.Var(
name: Optional[str], restrictions: Sequence[Callable[[Expr], bool]] = ()
)
Methods
match
match(
expr: Expr,
bindings: oryx.experimental.matching.jax_rewrite.Bindings
,
succeed: oryx.experimental.matching.jax_rewrite.Continuation
) -> oryx.experimental.matching.jax_rewrite.Success
ok
ok(
expr: Expr
) -> bool
__eq__
__eq__(
other
)
Class Variables | |
---|---|
restrictions |
()
|