Crates.io | dreams |
lib.rs | dreams |
version | 0.0.1 |
source | src |
created_at | 2023-07-23 12:32:03.704214 |
updated_at | 2023-07-23 12:32:03.704214 |
description | web, fs, sql |
homepage | |
repository | |
max_upload_size | |
id | 923721 |
size | 114,986 |
use iofs::prelude::*;
fn main() -> std::io::Result<()> {
let mut f = FileInfo::open_smart("foo.txt")?;
f.rename("new_name")?;
assert!(f.name(), "new_name.txt");
Ok(())
}
use iofs::io::Console;
fn main() -> stools::io::Result<()> {
let mut console = Console::new();
let n = console.input::<i32>(Some("input a number: "))?;
Ok(())
}