-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added an example showing how to use with_rect #17664
base: main
Are you sure you want to change the base?
Conversation
Welcome, new contributor! Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨ |
You added a new example but didn't add metadata for it. Please update the root Cargo.toml file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this, but IMO this sort of documentation on "how to use a specific API" is best suited to API docs. Examples are harder to discover and much more expensive to maintain.
Can you condense this and move it over to a doc test (and maybe some extra explanation there?).
You added a new example but didn't add metadata for it. Please update the root Cargo.toml file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice stuff; this is clear and helpful. I have a few style / clarity nits.
Co-authored-by: Alice Cecile <[email protected]>
Thanks! |
@Carter0, I'd appreciate your review here if you have a minute :) |
Objective
Add an example demonstrating the use of
ImageNode::rect
Fixes #16482
Solution
Modified the code in the original issue #16457
Testing
to test run
cargo run --example image_rect --release