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.
24 lines
460 B
24 lines
460 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.666.0-rc",
|
|
author: "Bendy (real)",
|
|
};
|
|
|
|
// FIXME: this needs to be configurable via UCI
|
|
pub const depth: u8 = 6;
|