/// How far a print job has been submitted to the print system.
////// The unit of [`current`](Self::current) and [`total`](Self::total) is chosen by each printer
/// and may change between versions; only their ratio is meaningful.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]pubstructPrintProgress{current:u32,
total:u32,
}implPrintProgress{pub(crate)fnnew(current:u32, total:u32)->Self{Self{
current: current.min(total),
total,}}/// The amount of work submitted so far, at most [`total`](Self::total).
pubfncurrent(&self)->u32{self.current
}/// The amount of work to submit.
pubfntotal(&self)->u32{self.total
}}