A library to render SVG images to Cairo surfaces. GNOME uses this to
render SVG icons. Outside of GNOME, other desktop environments use it
for similar purposes. Wikimedia uses it for Wikipedia's SVG diagrams.
//! Resolution for rendering (dots per inch = DPI).
/// Resolution for rendering (dots per inch = DPI).
#[derive(Debug, Copy, Clone)]pubstructDpi{pubx:f64,
puby:f64,
}implDpi{pubfnnew(x:f64, y:f64)-> Dpi{
Dpi { x, y }}}