#[derive(Clone, Copy, Debug, Eq, Ord, PartialEq, PartialOrd)]
pub struct ValueCodecRegistrationSource {
crate_name: &'static str,
module_path: &'static str,
file: &'static str,
line: u32,
}
impl ValueCodecRegistrationSource {
#[doc(hidden)]
#[inline]
#[must_use]
pub const fn new(crate_name: &'static str, module_path: &'static str, file: &'static str, line: u32) -> Self {
Self {
crate_name,
module_path,
file,
line,
}
}
#[inline]
#[must_use]
pub const fn crate_name(&self) -> &'static str {
self.crate_name
}
#[inline]
#[must_use]
pub const fn module_path(&self) -> &'static str {
self.module_path
}
#[inline]
#[must_use]
pub const fn file(&self) -> &'static str {
self.file
}
#[inline]
#[must_use]
pub const fn line(&self) -> u32 {
self.line
}
}