mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-22 00:17:33 +00:00
20 lines
517 B
Rust
20 lines
517 B
Rust
//! Default allocator with no special features
|
|
|
|
use arrayvec::ArrayVec;
|
|
|
|
pub(crate) fn metric() -> Option<(&'static str, &'static str)> { None }
|
|
|
|
/// Always returns Ok
|
|
pub fn trim<I: Into<Option<usize>>>(_: I) -> crate::Result { Ok(()) }
|
|
|
|
/// Always returns None
|
|
#[must_use]
|
|
pub fn memory_stats(_opts: &str) -> Option<String> { None }
|
|
|
|
/// Always returns None
|
|
#[must_use]
|
|
pub fn memory_usage() -> Option<String> { None }
|
|
|
|
#[must_use]
|
|
pub fn memory_usage_stats() -> Option<ArrayVec<(&'static str, usize), 6>> { None }
|