#![cfg_attr(
all(doc, feature = "document-features"),
doc = ::document_features::document_features!()
)]
#![cfg_attr(all(doc, feature = "document-features"), feature(doc_cfg, doc_auto_cfg))]
#![deny(missing_docs, rust_2018_idioms, unsafe_code)]
#[path = "oid.rs"]
mod borrowed;
pub use borrowed::{oid, Error};
mod object_id;
pub use object_id::{decode, ObjectId};
pub mod prefix;
#[derive(PartialEq, Eq, Hash, Ord, PartialOrd, Clone, Copy, Debug)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct Prefix {
bytes: ObjectId,
hex_len: usize,
}
const SIZE_OF_SHA1_DIGEST: usize = 20;
#[derive(Default, PartialEq, Eq, Debug, Hash, Ord, PartialOrd, Clone, Copy)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub enum Kind {
#[default]
Sha1 = 1,
}
mod kind;