pub struct PdfCardV1 {
pub pdf_bytes: Vec<u8>,
pub page_count: usize,
pub row_count: usize,
pub source: PdfRowSource,
pub unprintable_title_chars: String,
}Expand description
A rendered PDF dope card: the document plus the facts a transport needs to describe it without re-parsing the bytes.
Fields§
§pdf_bytes: Vec<u8>§page_count: usizePages in pdf_bytes, from crate::pdf_dope_card::dope_card_page_count — the
same function the generator paginated by, not a second estimate of it.
row_count: usizeRows printed. On the solve path this is the on-screen card.range_table row count;
on the reprint path it is the stored row count, so a caller can confirm every stored
row reached the paper.
source: PdfRowSourceSolved here, or printed from caller-supplied rows.
unprintable_title_chars: StringCharacters of the header title (pdf.title) the card’s font could not draw —
distinct, in order of first use, and empty when the title printed in full.
Not an error: the document is complete and every ROW printed. But a title is how a
shooter tells one card from another, and Liberation Sans covers no CJK, Arabic,
Hebrew, Thai or emoji, so a name in any of those used to vanish from the paper with
ok: true and nothing said. Each such character prints as
crate::pdf_dope_card::UNPRINTABLE_SUBSTITUTE and is named here, so a caller that
accepts any non-empty card name (both apps do) can warn at export time instead of
handing over an unidentifiable card.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PdfCardV1
impl RefUnwindSafe for PdfCardV1
impl Send for PdfCardV1
impl Sync for PdfCardV1
impl Unpin for PdfCardV1
impl UnsafeUnpin for PdfCardV1
impl UnwindSafe for PdfCardV1
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.