Human readable strings
MIT License
#[must_use]
on applicable functionsStr::as_bytes_mut()
is now unsafe
Str::from_bytes_exact()
is now unsafe
Str::from_str_exact()
takes impl AsRef<str>
instead of &str
const
types (e.g Uptime::day()
-> Uptime::DAY
)Published by hinto-janai 11 months ago
readable::date::*
:
TryFrom<(u16, u8, u8)>
TryFrom<(u16, u8)>
TryFrom<u16>
readable::str::Str
:
std::fmt::Write
Index
Extend<char>
, Extend<&str>
Deref
and AsRef
Add
and AddAssign
push_{str,char}_unchecked()
-> push_{str,char}_panic()
push_char_*()
variantspush_str_saturating()
remove()
pop()
truncate()
make_ascii_uppercase()
, make_ascii_lowercase()
as_bytes_mut()
, as_mut_ptr()
, as_str_mut()
Published by hinto-janai about 1 year ago
Time
type for clock time - 11:59:59 PM
Military
type for military-style clock time - 23:59:59
readable::time
free functions (unix()
, unix_clock()
, secs_to_hms()
, etc)readable::date
free functions (from_unix()
, as_unix()
, etc)SysUptime
, SysTime
, SysDate
traits for getting live-system inforeadable::time
-> readable::up
readable::date
into time
modulePublished by hinto-janai about 1 year ago
Nichi
type for calendar date formatting (Fri, Dec 25, 2020
)NichiFull
type for calendar date formatting (Friday, December 25th, 2020
)TimeUnit
type for remainder time measuring (61
== 1 minute, 1 second
)From
impl for std::time::Duration
from all readable::time
and readable::run
typesDefault
impl for Str
serde
& bincode
)Published by hinto-janai about 1 year ago
Htop
type in readable::time
for htop
-style uptime formattingUptime
trait for getting system uptime and formatting directly into a Time
, TimeFull
or Htop
TryFrom
implementations from smart pointer strings (Arc<str>
, Box<str>
, etc) for Str
Str::from_str()
-> Str::from_str_exact()
Str::from_bytes()
-> Str::from_bytes_exact()
Time::UNKNOWN
changed from ???
to (unknown)
TimeFull::UNKNOWN
changed from ???
to (unknown)
Published by hinto-janai about 1 year ago
First "public" release.