| D | date.rs | 3 /// Release date including year, month, and day. 6 pub struct Date(u32); struct 8 impl Date { implementation 9 /// Reads the release date of the running compiler. If it cannot be 10 /// determined (see the [top-level documentation](crate)), returns `None`. 15 /// use version_check::Date; 17 /// match Date::read() { 18 /// Some(d) => format!("The release date is: {}", d), 19 /// None => format!("Failed to read the release date.") 22 pub fn read() -> Option<Date> { in read() [all …]
|