bmp::px!
[-] [+]
[src]
macro_rules! px { ($r:expr, $g:expr, $b:expr) => { Pixel { r: $r as u8, g: $g as u8, b: $b as u8 } } }
Macro to generate a Pixel
from r
, g
and b
values.
macro_rules! px { ($r:expr, $g:expr, $b:expr) => { Pixel { r: $r as u8, g: $g as u8, b: $b as u8 } } }
Macro to generate a Pixel
from r
, g
and b
values.
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).