Experiments in applying Entity-Component-System patterns to durable data storage APIs.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

`ecsdb::system_name<S>(system: S) -> Cow<'static, str>`

moritz.vongoewels.de 9f6709b3 e6bd88fa

verified
+5
+5
src/lib.rs
··· 33 33 34 34 mod tuple_macros; 35 35 36 + use std::borrow::Cow; 36 37 use std::path::Path; 37 38 38 39 use tracing::{debug, instrument}; ··· 320 321 fn default() -> Self { 321 322 Self(chrono::DateTime::<chrono::Utc>::MIN_UTC) 322 323 } 324 + } 325 + 326 + pub fn system_name<S: IntoSystem<P>, P>(system: S) -> Cow<'static, str> { 327 + system.into_system().name() 323 328 } 324 329 325 330 #[doc = include_str!("../README.md")]