You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
384 B
21 lines
384 B
pub struct Info<'a> {
|
|
name: &'a str,
|
|
version: &'a str,
|
|
author: &'a str,
|
|
}
|
|
|
|
impl Info<'_> {
|
|
pub fn to_name(&self) -> String {
|
|
format!("{} {}", self.name, self.version)
|
|
}
|
|
pub fn to_author(&self) -> String {
|
|
self.author.to_owned()
|
|
}
|
|
}
|
|
|
|
pub const INFO: Info = Info {
|
|
name: "inkwell",
|
|
version: "0.0.1-rc",
|
|
author: "Bendy (real)",
|
|
};
|