-
Notifications
You must be signed in to change notification settings - Fork 368
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
Rust: more impl<AsComponents>
helpers
#8401
Conversation
rec.log_static( | ||
"images", | ||
&[ | ||
&format as &dyn rerun::ComponentBatch, | ||
&rerun::Image::indicator(), | ||
], | ||
)?; |
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.
Inference only breaks due to the explicit indicator shenanigans here, which I think is fine since they're going away.
Without the indicator, this would now come down to this:
rec.log_static("images", &format)?;
which is pretty neat.
@@ -26,7 +26,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> { | |||
(glam::Vec3::from(vertex_positions[1]) * factor).into(), | |||
(glam::Vec3::from(vertex_positions[2]) * factor).into(), | |||
]; | |||
rec.log("triangle", &[&vertex_positions as _])?; | |||
rec.log("triangle", &vertex_positions)?; |
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.
Inference broke because of the unspecified as _
. Now we don't need it at all, so that's just better.
Web viewer built successfully. If applicable, you should also test it:
Note: This comment is updated whenever you push a commit. |
@rerun-bot full-check |
Started a full build: https://github.com/rerun-io/rerun/actions/runs/12262036501 |
Into<AsComponents>
helpersimpl<AsComponents>
helpers
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.
👍
can't have enough of those, hum :/
Alright, let's see how this goes 🙈 |
New release, new helpers, as is now customary.
These only introduced two breaking changes in all of our examples and snippets, and they look pretty innocuous.
Opinions?
AsComponents
for collections ofAsComponents
#8398