Sign in
fuchsia
/
third_party
/
rust-crates
/
refs/heads/sandbox/robtsuk/font-rs
/
.
/
rustc_deps
/
vendor
/
font-rs
/
src
/
macros.rs
blob: deccd9d6b02e178f31bd4a8328c8e4e22f2d5ce2 [
file
] [
log
] [
blame
]
#[
macro_export
]
macro_rules
!
gen_new
{
(
$r
:
ident
,
$
(
$field
:
ident
:
$field_type
:
ty
),*)
=>
{
impl
$r
{
pub
fn
new
(
$
(
$field
:
$field_type
),*)
->
Self
{
$r
{
$
(
$field
:
$field
),*
}
}
}
}
}