Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagerust
# Nested Example - Get the First Error

let v = vec![1];
let result = v.iter().map(| |
    MsgSender::new(name.to_string())
        .with_timepoint(sim_time(timestamp))
        .with_component(&[Box3D::new(length / 2.0, width / 2.0, height / 2.0)])?
        .with_component(&[rerun_transform])?
        .with_component(&[ColorRGBA::from_rgb(r, g, b)])?
        .with_component(&[Radius(0.005)])?
        .with_component(&[Label(name.to_string().to_owned())])?
    .send(session)?
).collect();
match result {
    Ok(_) => (),
    Err(e) => println!("WARN: Failed to send 'bounding box' to the viz session [{:?}]", e)
}