[][src]Macro rsvg_internals::coord_units

macro_rules! coord_units {
    ($name:ident, $default:expr) => { ... };
}

Creates a newtype around CoordUnits, with a default value.

SVG attributes that can take userSpaceOnUse or objectBoundingBox values often have different default values depending on the type of SVG element. We use this macro to create a newtype for each SVG element and attribute that requires values of this type. The newtype provides an impl Default with the specified $default value.