embed_image!() { /* proc-macro */ }
Expand description
Produces a doc string for inclusion in Markdown documentation.
Please see the crate-level documentation for usage instructions.
ยงExamples
/// [ball](https://en.wikipedia.org/wiki/ball)
/// ![Ball demo image][Ball demo image]
#[cfg_attr(doc, doc = embed_doc_image::embed_image!("Ball demo image", "docs/ball.png"))]
#[derive(Debug, Clone)]
pub struct Ball {
pub radius: f64,
}