use crate::types::*;
macro_rules! implement {
(
$($t:ty,)*
) => {
$(
impl<T> $t {
pub const fn from_const(value: T) -> Self {
Self(value)
}
pub fn into_inner(self) -> T {
self.0
}
pub const fn inner_ref(&self) -> &T {
&self.0
}
pub fn inner_mut(&mut self) -> &mut T {
&mut self.0
}
}
)*
};
}
crate::for_all_material_types!(implement);