Website • Documentation • Report Bug • Request Feature • Contributing Guidelines
Mini Functions defines a base layer of functionality for writing Rust applications. It provides a set of functions that can be used in your application code.
This table briefly describes the Mini Functions Library available for Rust. This table provides the include file name and the function prototype for each function.
mini-functions
requires Rust 1.57.0 or later.
The mini-functions
library consists of the following functions listed
in alphabetical order in the following tables.
| Function | Include File | Function Prototype | Description |
| -------- | ------------ | ------------------ | ----------- |
| Date::date()
| date.rs
| fn date()
| Returns the current date in UTC format. |
| Date::day()
| date.rs
| fn day()
| Returns the current day. |
| Date::hour()
| date.rs
| fn hour()
| Returns the current hour. |
| Date::iso_8601() |
date.rs|
fn iso8601()| Returns the current date and time in ISO 8601 format. |
|
Date::microsecond()|
date.rs|
fn microsecond()| Returns the current microsecond. |
|
Date::millisecond()|
date.rs|
fn millisecond()| Returns the current millisecond. |
|
Date::minute()|
date.rs|
fn minute()| Returns the current minute. |
|
Date::month()|
date.rs|
fn month()| Returns the current month. |
|
Date::nanosecond()|
date.rs|
fn nanosecond()| Returns the current nanosecond. |
|
Date::nowutc()|
date.rs|
fn now_utc()| Returns the current date and time in UTC format. |
|
Date::second()|
date.rs|
fn second()| Returns the current second. |
|
Date::timestamp()|
date.rs|
fn timestamp()| Returns the current timestamp. |
|
Date::weekday()|
date.rs|
fn weekday()| Returns the current weekday. |
|
Date::year()|
date.rs|
fn year()` | Returns the current year. |
| Function | Include File | Function Prototype | Description |
| -------- | ------------ | ------------------ | ----------- |
| Log::new()
| log.rs
| fn new()
| Creates a new log instance. |
| Log::log()
| log.rs
| fn log()
| Logs a message to the console.|
For transparency into our release cycle and in striving to maintain
backward compatibility, Mini Functions
follows
semantic versioning.
The project is licensed under the terms of both the MIT license and the Apache License (Version 2.0).
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
A big thank you to all the awesome contributors of Mini Functions for their help and support.