use super::*;
impl<const A: u8, B, C, D> ::core::fmt::Debug for Q<A, B, C, D>
where
B: ops::Int,
B: ops::Prim,
D: Engine,
(): SupportedPrecision<A>,
(): SupportedInt<B>,
(): Supported<A, B> {
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
write!(f, "Q({})", self.n)
}
}
impl<const A: u8, B, C, D> ::core::fmt::Display for Q<A, B, C, D>
where
B: ops::Int,
B: ops::Prim,
D: Engine,
(): SupportedPrecision<A>,
(): SupportedInt<B>,
(): Supported<A, B> {
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
write!(f, "Q({})", self.n)
}
}