mod visuals {
pub const POSTS: &str = ”
“;
// → posts
个人笔记
pub const FOODIE: &str = ”
“;
// → foodie
吃吃速报
pub const NATSCI: &str = ”
“;
// → natsci
自然科学笔记
pub const NETCOM: &str = ”
“;
// → netcom
通讯技术笔记
pub const BLOGOPS: &str = ”
“;
// → blogops
后台日志
pub const NEVSVIF: &str = ”
“;
// → nevsvif
pub const ???: &str = ”
“;
// → ???
???
}
// === module separator ===
// —————————————–
// —————————————–
// —————————————–
// —————————————–
// —————————————–
/*
nevsvif */
// —————————————–
/*
??? */
// === module separator ===
mod links {
pub const NEVSVIF: &str = ”
???
“;
pub const ???: &str = ”
???
“;
}
struct Home<‘a> {
title: &’a str,
author: &‘a str,
visuals: Visuals<’a>,
routes: Routes<‘a>,
}
struct Visuals<’a> {
posts: &‘a str, //
foodie: &‘a str, //
natsci: &’a str, //
netcom: &‘a str, //
blogops: &‘a str, //
nevsvif: &’a str, //
???: &’a str, //
}
struct Routes<‘a> {
posts: &’a str,
foodie: &’a str,
natsci: &‘a str,
netcom: &’a str,
blogops: &’a str,
nevsvif: &‘a str,
???: &‘a str,
}
const HOME: Home = Home {
author: ”
“,
visuals: Visuals {
posts: visuals::POSTS,
foodie: visuals::FOODIE,
natsci: visuals::NATSCI,
netcom: visuals::NETCOM,
blogops: visuals::BLOGOPS,
nevsvif: visuals::NEVSVIF,
???: visuals::???,
},
routes: Routes {
posts: links::POSTS,
foodie: links::FOODIE,
natsci: links::NATSCI,
netcom: links::NETCOM,
blogops: links::BLOGOPS,
nevsvif: links::NEVSVIF,
???: links::???,
},
};
// === module separator ===
/* footer.rs */
fn main() {
render(&HOME);
}
//
compiling … ok
//
render finished ✓ at
//
version v26.02 · commit fi5se7n
//
//
contact: fivsevn0507@outlook.com