length.rs: Implement trait Default for RsvgLength

parent df252a84
......@@ -44,6 +44,16 @@ pub struct RsvgLength {
dir: LengthDir
}
impl Default for RsvgLength {
fn default () -> RsvgLength {
RsvgLength {
length: 0.0,
unit: LengthUnit::Default,
dir: LengthDir::Both
}
}
}
const POINTS_PER_INCH: f64 = 72.0;
const CM_PER_INCH: f64 = 2.54;
const MM_PER_INCH: f64 = 25.4;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment