[][src]Macro ingrid::size

macro_rules! size {
    ($width:expr, $height:expr) => { ... };
}

A size instantiation helper.

This macro helps instantiate sizes with a shorter syntax. Instead of typing a full Size::new(width, height), one simply has to write size!(width, height) leading to more readable code.

Examples

assert_eq!(size!(24, 42), Size::new(24, 42));