pub struct CompileErrorTemplate<const N: usize> {
pub error_type: &'static str,
pub fmt: CompileErrFormatter<N>,
}Expand description
Compile Error Template (generated by macro)
Fields§
§error_type: &'static str§fmt: CompileErrFormatter<N>Implementations§
Source§impl<const N: usize> CompileErrorTemplate<N>
impl<const N: usize> CompileErrorTemplate<N>
Sourcepub const fn new(error_type: &'static str, fmt: CompileErrFormatter<N>) -> Self
pub const fn new(error_type: &'static str, fmt: CompileErrFormatter<N>) -> Self
Creates a new compile error template Should only be used a macro
Auto Trait Implementations§
impl<const N: usize> Freeze for CompileErrorTemplate<N>
impl<const N: usize> RefUnwindSafe for CompileErrorTemplate<N>
impl<const N: usize> Send for CompileErrorTemplate<N>
impl<const N: usize> Sync for CompileErrorTemplate<N>
impl<const N: usize> Unpin for CompileErrorTemplate<N>
impl<const N: usize> UnwindSafe for CompileErrorTemplate<N>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more