INNER CODE UNIT · Rust
triangles
stepancheg/rust-protobuf · protobuf-examples/vs-prost/src/lib.rs:135
fn triangles() {
let mut rp = rust_protobuf_protos::triangle::Triangle::new();
let mut pr = prost_protos::Triangle::default();
rp.description = "The triangle".to_owned();
pr.description = "The triangle".to_owned();
rp.color = rust_protobuf_protos::triangle::Color::RED.into();
pr.color = prost_protos::Color::Red as i32;
}
}