mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-06 03:20:26 +00:00
3c8328c9cc
- add missing ncdirect_* static inline functions. - update Notcurses.getc(). - add NcTime constructor. - add NcSigSet type + constructor. - minor fixes.
16 lines
286 B
Rust
16 lines
286 B
Rust
//! `NcTime`
|
|
|
|
///
|
|
// Expected by [`notcurses_getc`] & [`notcurses_getc_nblock`], that can't use
|
|
// libc::timespec
|
|
pub type NcTime = crate::bindings::ffi::timespec;
|
|
|
|
impl NcTime {
|
|
pub fn new() -> Self {
|
|
Self {
|
|
tv_sec: 0,
|
|
tv_nsec: 0,
|
|
}
|
|
}
|
|
}
|