use super::*;
use libdd_profiling_protobuf::StringOffset;
pub type StringId = StringOffset;
impl Id for StringId {
type RawId = i64;
fn from_offset(inner: usize) -> Self {
#[allow(clippy::expect_used)]
Self::try_from(inner).expect("StringId to fit into a u32")
}
fn to_raw_id(&self) -> Self::RawId {
Self::RawId::from(self)
}
}