25 lines · 715 B · Rust
RawDownload
#![forbid(unsafe_code)]#![deny(rust_2018_idioms)] pub mod file;pub mod graph; pub use graph::Graph; pub const GENERATION_NUMBER_INFINITY: u32 = 0xffff_ffff;pub const GENERATION_NUMBER_MAX: u32 = 0x3fff_ffff; /// The maximum number of commits that can be stored in a commit graph.pub const MAX_COMMITS: u32 = (1 << 30) + (1 << 29) + (1 << 28) - 1; // TODO: pub type ImpossibleVariantError = !;#[derive(Debug)]pub struct ImpossibleVariantError; impl std::error::Error for ImpossibleVariantError {} impl std::fmt::Display for ImpossibleVariantError {    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {        f.write_str("this enum was constructed with an invalid variant")    }}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t