Skip to content

feat: add getter methods on fields of Constraint#122

Merged
KnorpelSenf merged 2 commits intorust-or:mainfrom
cyx2015s:inspect_constraint
Mar 17, 2026
Merged

feat: add getter methods on fields of Constraint#122
KnorpelSenf merged 2 commits intorust-or:mainfrom
cyx2015s:inspect_constraint

Conversation

@cyx2015s
Copy link
Copy Markdown
Contributor

Added getter methods for Constraint:

  • Added expression() to return a reference to the expression field.
  • Added is_equality() to return the value of the is_equality field.
  • Added name() to return an optional reference to the name field as a string slice.

@lovasoa
Copy link
Copy Markdown
Collaborator

lovasoa commented Mar 15, 2026

Good for me. I'll merge once ci passes

@cyx2015s
Copy link
Copy Markdown
Contributor Author

I'll add missing documentations, sorry.

Copy link
Copy Markdown
Contributor

@KnorpelSenf KnorpelSenf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@KnorpelSenf KnorpelSenf merged commit 98dbe6d into rust-or:main Mar 17, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants