Skip to content

Conversation

@sei40kr
Copy link
Contributor

@sei40kr sei40kr commented Jan 29, 2026

Summary

  • Add is_success() method to ParseResult (Rust equivalent of Ruby's Result#success?)
  • Add is_failure() method to ParseResult (Rust equivalent of Ruby's Result#failure?)

Public API Changes

+pub fn ruby_prism::ParseResult<'pr>::is_failure(&self) -> bool
+pub fn ruby_prism::ParseResult<'pr>::is_success(&self) -> bool

Test plan

  • bundle exec rake cargo:test
  • bundle exec rake cargo:lint

sei40kr and others added 2 commits January 29, 2026 14:32
Port Ruby's `node_ext.rb` functionality to Rust bindings, providing
`full_name` and `full_name_parts` methods for `ConstantReadNode`,
`ConstantWriteNode`, `ConstantTargetNode`, `ConstantPathNode`, and
`ConstantPathTargetNode`.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@sei40kr sei40kr changed the title [rust] Add is_success and is_failure methods for ParseResult [rust] add is_success and is_failure methods for ParseResult Jan 29, 2026
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.

1 participant