Download crates/forge_fs/src/error.rs from SaylorTwift/forgecode: direct link, hf CLI and curl.
- Browser
- Download file 809 Bytes
-
https://huggingface.co/SaylorTwift/forgecode/resolve/main/crates/forge_fs/src/error.rs
- Command line
-
hf download hf://SaylorTwift/forgecode/crates/forge_fs/src/error.rs
-
curl -L -o error.rs https://huggingface.co/SaylorTwift/forgecode/resolve/main/crates/forge_fs/src/error.rs
809 Bytes
| use std::string::FromUtf8Error; | |
| use thiserror::Error; | |
| /// Error type for file operations | |
| pub enum Error { | |
| BinaryFileNotSupported(String), | |
| StartBeyondFileSize { start: u64, total: u64 }, | |
| IndexStartingWithZero { start: u64, end: u64 }, | |
| StartGreaterThanEnd { start: u64, end: u64 }, | |
| Utf8ValidationFailed( FromUtf8Error), | |
| IoError( std::io::Error), | |
| } | |