libfetch 0.1.0

Simple but reliable library for fetch tools
Documentation
use crate::shared::procfs::Memory;

pub trait Platform {
    fn new() -> Self;

    fn name(&self) -> Option<String>;

    fn memory(&self) -> Option<Memory>;

    fn shell(&self) -> Option<String>;
    
    fn kernel(&self) -> Option<String>;

    fn uptime(&self) -> Option<usize>;

    fn user(&self) -> Option<String>;

    fn hostname(&self) -> Option<String>;

    fn desktop(&self) -> Option<String>;
}