#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct MetalSource {
code: &'static str,
origin: &'static str,
}
impl MetalSource {
#[must_use]
pub const fn new(code: &'static str, origin: &'static str) -> Self {
Self { code, origin }
}
#[must_use]
pub const fn empty() -> Self {
Self::new("", "<empty>")
}
#[must_use]
pub const fn code(self) -> &'static str {
self.code
}
#[must_use]
pub const fn origin(self) -> &'static str {
self.origin
}
}