snippets/snippets/entity_path.rs
//! DO NOT EDIT! This file was autogenerated by `docs/snippets/build.rs`. The original is in `/home/runner/work/rerun/rerun/docs/snippets/all/archetypes/entity_path.rs`.
//! Example of different ways of constructing an entity path.
pub fn main(_args: &[String]) -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_entity_path").spawn()?;
rec.log(
r"world/42/escaped\ string\!",
&rerun::TextDocument::new("This entity path was escaped manually"),
)?;
rec.log(
rerun::entity_path!["world", 42, "unescaped string!"],
&rerun::TextDocument::new("This entity path was provided as a list of unescaped strings"),
)?;
Ok(())
}