pub struct PageBuilder<'a> { /* private fields */ }Expand description
A page being built.
Implementations§
Source§impl<'a> PageBuilder<'a>
impl<'a> PageBuilder<'a>
Sourcepub fn add_text(
&mut self,
text: &str,
x: f32,
y: f32,
font_name: &str,
font_size: f32,
) -> &mut Self
pub fn add_text( &mut self, text: &str, x: f32, y: f32, font_name: &str, font_size: f32, ) -> &mut Self
Add text to the page.
Sourcepub fn add_embedded_text(
&mut self,
text: &str,
x: f32,
y: f32,
font_resource_name: &str,
font_size: f32,
) -> &mut Self
pub fn add_embedded_text( &mut self, text: &str, x: f32, y: f32, font_resource_name: &str, font_size: f32, ) -> &mut Self
Add Unicode text on a page using a previously-registered embedded
TrueType font. The font must have been registered with
PdfWriter::register_embedded_font first; the returned resource
name is what font_resource_name should be (e.g. "EF1").
Glyph IDs are looked up via the font’s cmap and buffered into
a structured crate::writer::content_stream::ContentStreamOp::ShowEmbeddedText
op carrying the font resource name. Hex emission is deferred to
PdfWriter::finish, which runs
crate::fonts::subset_font_bytes on each embedded font and
uses the resulting crate::fonts::GlyphRemapper to renumber
every original GID in the content stream into its subset-local
index — so FontFile2, /W, ToUnicode, and the content stream
all agree on the subset GID space.
Sourcepub fn add_shaped_embedded_text(
&mut self,
text: &str,
x: f32,
y: f32,
font_resource_name: &str,
font_size: f32,
direction: Direction,
) -> &mut Self
Available on crate feature system-fonts only.
pub fn add_shaped_embedded_text( &mut self, text: &str, x: f32, y: f32, font_resource_name: &str, font_size: f32, direction: Direction, ) -> &mut Self
system-fonts only.Add Unicode text on a page using the harfrust shaper. Required
for any complex script (Arabic, Hebrew, Devanagari) where
add_embedded_text’s naive char→glyph cmap lookup produces
the wrong glyphs (no contextual forms, no ligatures, no RTL
reordering).
direction controls visual reordering — pass
crate::writer::font_shaping::Direction::Rtl for Arabic/
Hebrew runs after BiDi segmentation.
On any error (unknown resource, unparseable face) this is a
silent no-op for the same reason as add_embedded_text: a
missing-glyph symptom is easier to debug than a panic.
Sourcepub fn add_element(&mut self, element: &ContentElement) -> &mut Self
pub fn add_element(&mut self, element: &ContentElement) -> &mut Self
Add a content element to the page.
Text elements whose FontSpec.name matches a font registered
via PdfWriter::register_embedded_font_as are routed through
add_embedded_text (Type-0 hex emission) so that CJK / Cyrillic
/ Greek / etc. render with the embedded subset. All other
elements fall through to the default base-14 content-stream
path.
Sourcepub fn add_elements(&mut self, elements: &[ContentElement]) -> &mut Self
pub fn add_elements(&mut self, elements: &[ContentElement]) -> &mut Self
Add multiple content elements. Each element is routed through
add_element so the embedded-font dispatch applies per-element.
Sourcepub fn draw_rect(
&mut self,
x: f32,
y: f32,
width: f32,
height: f32,
) -> &mut Self
pub fn draw_rect( &mut self, x: f32, y: f32, width: f32, height: f32, ) -> &mut Self
Draw a rectangle on the page.
Sourcepub fn fill_rect_colored(
&mut self,
x: f32,
y: f32,
width: f32,
height: f32,
r: f32,
g: f32,
b: f32,
) -> &mut Self
pub fn fill_rect_colored( &mut self, x: f32, y: f32, width: f32, height: f32, r: f32, g: f32, b: f32, ) -> &mut Self
Fill a rectangle with the given RGB color, then restore the fill color to black.
Sourcepub fn set_fill_color(&mut self, r: f32, g: f32, b: f32) -> &mut Self
pub fn set_fill_color(&mut self, r: f32, g: f32, b: f32) -> &mut Self
Set the current fill (non-stroking) color. Affects subsequent text and fill ops.
Sourcepub fn draw_hline_colored(
&mut self,
x: f32,
y: f32,
width: f32,
thickness: f32,
r: f32,
g: f32,
b: f32,
) -> &mut Self
pub fn draw_hline_colored( &mut self, x: f32, y: f32, width: f32, thickness: f32, r: f32, g: f32, b: f32, ) -> &mut Self
Draw a horizontal line segment with the given RGB stroke color and thickness.
Sourcepub fn add_link(&mut self, link: LinkAnnotation) -> &mut Self
pub fn add_link(&mut self, link: LinkAnnotation) -> &mut Self
Sourcepub fn link(&mut self, rect: Rect, uri: impl Into<String>) -> &mut Self
pub fn link(&mut self, rect: Rect, uri: impl Into<String>) -> &mut Self
Add a URI link annotation to the page.
§Arguments
rect- The clickable area in page coordinatesuri- The target URL
Sourcepub fn internal_link(&mut self, rect: Rect, page: usize) -> &mut Self
pub fn internal_link(&mut self, rect: Rect, page: usize) -> &mut Self
Add an internal page link annotation.
§Arguments
rect- The clickable area in page coordinatespage- The target page index (0-based)
Sourcepub fn add_text_markup(&mut self, markup: TextMarkupAnnotation) -> &mut Self
pub fn add_text_markup(&mut self, markup: TextMarkupAnnotation) -> &mut Self
Add a text markup annotation.
Sourcepub fn highlight(&mut self, rect: Rect, quad_points: Vec<[f64; 8]>) -> &mut Self
pub fn highlight(&mut self, rect: Rect, quad_points: Vec<[f64; 8]>) -> &mut Self
Add a highlight annotation.
§Arguments
rect- Bounding rectanglequad_points- QuadPoints defining the text area (each is 8 f64 values)
Sourcepub fn highlight_rect(&mut self, rect: Rect) -> &mut Self
pub fn highlight_rect(&mut self, rect: Rect) -> &mut Self
Add a highlight annotation from a simple rectangle.
Generates QuadPoints automatically from the rectangle.
Sourcepub fn underline(&mut self, rect: Rect, quad_points: Vec<[f64; 8]>) -> &mut Self
pub fn underline(&mut self, rect: Rect, quad_points: Vec<[f64; 8]>) -> &mut Self
Add an underline annotation.
Sourcepub fn underline_rect(&mut self, rect: Rect) -> &mut Self
pub fn underline_rect(&mut self, rect: Rect) -> &mut Self
Add an underline annotation from a simple rectangle.
Sourcepub fn strikeout(&mut self, rect: Rect, quad_points: Vec<[f64; 8]>) -> &mut Self
pub fn strikeout(&mut self, rect: Rect, quad_points: Vec<[f64; 8]>) -> &mut Self
Add a strikeout annotation.
Sourcepub fn strikeout_rect(&mut self, rect: Rect) -> &mut Self
pub fn strikeout_rect(&mut self, rect: Rect) -> &mut Self
Add a strikeout annotation from a simple rectangle.
Sourcepub fn squiggly(&mut self, rect: Rect, quad_points: Vec<[f64; 8]>) -> &mut Self
pub fn squiggly(&mut self, rect: Rect, quad_points: Vec<[f64; 8]>) -> &mut Self
Add a squiggly underline annotation.
Sourcepub fn squiggly_rect(&mut self, rect: Rect) -> &mut Self
pub fn squiggly_rect(&mut self, rect: Rect) -> &mut Self
Add a squiggly underline annotation from a simple rectangle.
Sourcepub fn add_text_note(&mut self, note: TextAnnotation) -> &mut Self
pub fn add_text_note(&mut self, note: TextAnnotation) -> &mut Self
Add a text annotation (sticky note).
Sourcepub fn sticky_note(
&mut self,
rect: Rect,
contents: impl Into<String>,
) -> &mut Self
pub fn sticky_note( &mut self, rect: Rect, contents: impl Into<String>, ) -> &mut Self
Add a sticky note annotation with default Note icon.
§Arguments
rect- The position and size for the icon (typically 24x24)contents- The text content of the note
Sourcepub fn comment(&mut self, rect: Rect, contents: impl Into<String>) -> &mut Self
pub fn comment(&mut self, rect: Rect, contents: impl Into<String>) -> &mut Self
Add a comment annotation (speech bubble icon).
Sourcepub fn text_note_with_icon(
&mut self,
rect: Rect,
contents: impl Into<String>,
icon: TextAnnotationIcon,
) -> &mut Self
pub fn text_note_with_icon( &mut self, rect: Rect, contents: impl Into<String>, icon: TextAnnotationIcon, ) -> &mut Self
Add a text annotation with a specific icon.
§Arguments
rect- The position and size for the iconcontents- The text content of the noteicon- The icon to display
Sourcepub fn add_freetext(&mut self, freetext: FreeTextAnnotation) -> &mut Self
pub fn add_freetext(&mut self, freetext: FreeTextAnnotation) -> &mut Self
Add a FreeText annotation.
Sourcepub fn textbox(&mut self, rect: Rect, contents: impl Into<String>) -> &mut Self
pub fn textbox(&mut self, rect: Rect, contents: impl Into<String>) -> &mut Self
Add a text box annotation.
§Arguments
rect- The position and size of the text boxcontents- The text content
Sourcepub fn textbox_styled(
&mut self,
rect: Rect,
contents: impl Into<String>,
font: &str,
size: f32,
) -> &mut Self
pub fn textbox_styled( &mut self, rect: Rect, contents: impl Into<String>, font: &str, size: f32, ) -> &mut Self
Add a text box with specific font and size.
§Arguments
rect- The position and size of the text boxcontents- The text contentfont- Font name (Helvetica, Times, Courier)size- Font size in points
Sourcepub fn textbox_centered(
&mut self,
rect: Rect,
contents: impl Into<String>,
) -> &mut Self
pub fn textbox_centered( &mut self, rect: Rect, contents: impl Into<String>, ) -> &mut Self
Add a centered text box.
Sourcepub fn callout(
&mut self,
rect: Rect,
contents: impl Into<String>,
callout_points: Vec<f64>,
) -> &mut Self
pub fn callout( &mut self, rect: Rect, contents: impl Into<String>, callout_points: Vec<f64>, ) -> &mut Self
Add a callout annotation (text box with leader line).
§Arguments
rect- The position and size of the text boxcontents- The text contentcallout_points- Leader line coordinates [x1,y1, x2,y2] or [x1,y1, x2,y2, x3,y3]
Sourcepub fn typewriter(
&mut self,
rect: Rect,
contents: impl Into<String>,
) -> &mut Self
pub fn typewriter( &mut self, rect: Rect, contents: impl Into<String>, ) -> &mut Self
Add a typewriter annotation (plain text without border).
Sourcepub fn add_line(&mut self, line: LineAnnotation) -> &mut Self
pub fn add_line(&mut self, line: LineAnnotation) -> &mut Self
Add a Line annotation.
Sourcepub fn line(&mut self, start: (f64, f64), end: (f64, f64)) -> &mut Self
pub fn line(&mut self, start: (f64, f64), end: (f64, f64)) -> &mut Self
Add a simple line from start to end.
Sourcepub fn arrow(&mut self, start: (f64, f64), end: (f64, f64)) -> &mut Self
pub fn arrow(&mut self, start: (f64, f64), end: (f64, f64)) -> &mut Self
Add a line with an arrow at the end.
Sourcepub fn double_arrow(&mut self, start: (f64, f64), end: (f64, f64)) -> &mut Self
pub fn double_arrow(&mut self, start: (f64, f64), end: (f64, f64)) -> &mut Self
Add a double-headed arrow line.
Sourcepub fn line_with_endings(
&mut self,
start: (f64, f64),
end: (f64, f64),
start_ending: LineEndingStyle,
end_ending: LineEndingStyle,
) -> &mut Self
pub fn line_with_endings( &mut self, start: (f64, f64), end: (f64, f64), start_ending: LineEndingStyle, end_ending: LineEndingStyle, ) -> &mut Self
Add a line with custom line endings.
Sourcepub fn add_shape(&mut self, shape: ShapeAnnotation) -> &mut Self
pub fn add_shape(&mut self, shape: ShapeAnnotation) -> &mut Self
Add a Shape annotation.
Sourcepub fn rectangle_filled(
&mut self,
rect: Rect,
stroke: (f32, f32, f32),
fill: (f32, f32, f32),
) -> &mut Self
pub fn rectangle_filled( &mut self, rect: Rect, stroke: (f32, f32, f32), fill: (f32, f32, f32), ) -> &mut Self
Add a filled rectangle annotation.
Sourcepub fn circle_filled(
&mut self,
rect: Rect,
stroke: (f32, f32, f32),
fill: (f32, f32, f32),
) -> &mut Self
pub fn circle_filled( &mut self, rect: Rect, stroke: (f32, f32, f32), fill: (f32, f32, f32), ) -> &mut Self
Add a filled circle/ellipse annotation.
Sourcepub fn add_polygon(&mut self, polygon: PolygonAnnotation) -> &mut Self
pub fn add_polygon(&mut self, polygon: PolygonAnnotation) -> &mut Self
Add a Polygon or PolyLine annotation.
Sourcepub fn polygon(&mut self, vertices: Vec<(f64, f64)>) -> &mut Self
pub fn polygon(&mut self, vertices: Vec<(f64, f64)>) -> &mut Self
Add a closed polygon annotation.
Sourcepub fn polygon_filled(
&mut self,
vertices: Vec<(f64, f64)>,
stroke: (f32, f32, f32),
fill: (f32, f32, f32),
) -> &mut Self
pub fn polygon_filled( &mut self, vertices: Vec<(f64, f64)>, stroke: (f32, f32, f32), fill: (f32, f32, f32), ) -> &mut Self
Add a filled polygon annotation.
Sourcepub fn polyline(&mut self, vertices: Vec<(f64, f64)>) -> &mut Self
pub fn polyline(&mut self, vertices: Vec<(f64, f64)>) -> &mut Self
Add an open polyline annotation.
Sourcepub fn add_ink(&mut self, ink: InkAnnotation) -> &mut Self
pub fn add_ink(&mut self, ink: InkAnnotation) -> &mut Self
Add an Ink annotation (freehand drawing).
Sourcepub fn freehand(&mut self, strokes: Vec<Vec<(f64, f64)>>) -> &mut Self
pub fn freehand(&mut self, strokes: Vec<Vec<(f64, f64)>>) -> &mut Self
Add a freehand drawing with multiple strokes.
§Arguments
strokes- List of strokes, each being a list of (x, y) points
Sourcepub fn ink_styled(
&mut self,
stroke: Vec<(f64, f64)>,
color: (f32, f32, f32),
line_width: f32,
) -> &mut Self
pub fn ink_styled( &mut self, stroke: Vec<(f64, f64)>, color: (f32, f32, f32), line_width: f32, ) -> &mut Self
Add a styled ink annotation.
§Arguments
stroke- List of (x, y) pointscolor- RGB color tupleline_width- Line width in points
Sourcepub fn add_stamp(&mut self, stamp: StampAnnotation) -> &mut Self
pub fn add_stamp(&mut self, stamp: StampAnnotation) -> &mut Self
Add a Stamp annotation.
Sourcepub fn stamp(&mut self, rect: Rect, stamp_type: StampType) -> &mut Self
pub fn stamp(&mut self, rect: Rect, stamp_type: StampType) -> &mut Self
Add a stamp annotation with the given type.
§Arguments
rect- Position and size of the stampstamp_type- The type of stamp to display
Sourcepub fn stamp_approved(&mut self, rect: Rect) -> &mut Self
pub fn stamp_approved(&mut self, rect: Rect) -> &mut Self
Add an “Approved” stamp.
Sourcepub fn stamp_draft(&mut self, rect: Rect) -> &mut Self
pub fn stamp_draft(&mut self, rect: Rect) -> &mut Self
Add a “Draft” stamp.
Sourcepub fn stamp_confidential(&mut self, rect: Rect) -> &mut Self
pub fn stamp_confidential(&mut self, rect: Rect) -> &mut Self
Add a “Confidential” stamp.
Sourcepub fn stamp_final(&mut self, rect: Rect) -> &mut Self
pub fn stamp_final(&mut self, rect: Rect) -> &mut Self
Add a “Final” stamp.
Sourcepub fn stamp_not_approved(&mut self, rect: Rect) -> &mut Self
pub fn stamp_not_approved(&mut self, rect: Rect) -> &mut Self
Add a “Not Approved” stamp.
Sourcepub fn stamp_for_comment(&mut self, rect: Rect) -> &mut Self
pub fn stamp_for_comment(&mut self, rect: Rect) -> &mut Self
Add a “For Comment” stamp.
Sourcepub fn stamp_custom(&mut self, rect: Rect, name: impl Into<String>) -> &mut Self
pub fn stamp_custom(&mut self, rect: Rect, name: impl Into<String>) -> &mut Self
Sourcepub fn add_popup(&mut self, popup: PopupAnnotation) -> &mut Self
pub fn add_popup(&mut self, popup: PopupAnnotation) -> &mut Self
Add a Popup annotation.
Sourcepub fn popup(&mut self, rect: Rect, open: bool) -> &mut Self
pub fn popup(&mut self, rect: Rect, open: bool) -> &mut Self
Add a popup window for annotations.
Sourcepub fn add_caret(&mut self, caret: CaretAnnotation) -> &mut Self
pub fn add_caret(&mut self, caret: CaretAnnotation) -> &mut Self
Add a Caret annotation.
Sourcepub fn caret_paragraph(&mut self, rect: Rect) -> &mut Self
pub fn caret_paragraph(&mut self, rect: Rect) -> &mut Self
Add a caret with paragraph symbol.
Sourcepub fn caret_with_comment(
&mut self,
rect: Rect,
comment: impl Into<String>,
) -> &mut Self
pub fn caret_with_comment( &mut self, rect: Rect, comment: impl Into<String>, ) -> &mut Self
Add a caret with a comment.
Sourcepub fn add_file_attachment(
&mut self,
file: FileAttachmentAnnotation,
) -> &mut Self
pub fn add_file_attachment( &mut self, file: FileAttachmentAnnotation, ) -> &mut Self
Add a FileAttachment annotation.
Sourcepub fn file_attachment(
&mut self,
rect: Rect,
file_name: impl Into<String>,
) -> &mut Self
pub fn file_attachment( &mut self, rect: Rect, file_name: impl Into<String>, ) -> &mut Self
Add a file attachment annotation.
Sourcepub fn file_attachment_paperclip(
&mut self,
rect: Rect,
file_name: impl Into<String>,
) -> &mut Self
pub fn file_attachment_paperclip( &mut self, rect: Rect, file_name: impl Into<String>, ) -> &mut Self
Add a file attachment with paperclip icon.
Sourcepub fn add_redact(&mut self, redact: RedactAnnotation) -> &mut Self
pub fn add_redact(&mut self, redact: RedactAnnotation) -> &mut Self
Add a Redact annotation.
Sourcepub fn redact_with_text(
&mut self,
rect: Rect,
overlay_text: impl Into<String>,
) -> &mut Self
pub fn redact_with_text( &mut self, rect: Rect, overlay_text: impl Into<String>, ) -> &mut Self
Add a redact annotation with overlay text.
Sourcepub fn set_tab_order(&mut self, order: char) -> &mut Self
pub fn set_tab_order(&mut self, order: char) -> &mut Self
Set the page’s /Tabs entry, declaring the tab-navigation
order for form fields and annotations. 'R' = row order (top-
to-bottom, left-to-right), 'C' = column order (left-to-right,
top-to-bottom), 'S' = structure order (requires tagged PDF —
only meaningful once Bundle F lands). #393 Bundle D-4.
Sourcepub fn set_page_open_script(&mut self, script: impl Into<String>) -> &mut Self
pub fn set_page_open_script(&mut self, script: impl Into<String>) -> &mut Self
Set a JavaScript action to run when this page is opened (/AA /O).
Sourcepub fn set_page_close_script(&mut self, script: impl Into<String>) -> &mut Self
pub fn set_page_close_script(&mut self, script: impl Into<String>) -> &mut Self
Set a JavaScript action to run when this page is closed (/AA /C).
Sourcepub fn add_text_field(&mut self, field: TextFieldWidget) -> &mut Self
pub fn add_text_field(&mut self, field: TextFieldWidget) -> &mut Self
Sourcepub fn text_field(&mut self, name: impl Into<String>, rect: Rect) -> &mut Self
pub fn text_field(&mut self, name: impl Into<String>, rect: Rect) -> &mut Self
Add a text field with builder pattern.
Sourcepub fn add_checkbox(&mut self, checkbox: CheckboxWidget) -> &mut Self
pub fn add_checkbox(&mut self, checkbox: CheckboxWidget) -> &mut Self
Sourcepub fn checkbox(&mut self, name: impl Into<String>, rect: Rect) -> &mut Self
pub fn checkbox(&mut self, name: impl Into<String>, rect: Rect) -> &mut Self
Add a checkbox with builder pattern.
Sourcepub fn add_radio_group(&mut self, group: RadioButtonGroup) -> &mut Self
pub fn add_radio_group(&mut self, group: RadioButtonGroup) -> &mut Self
Add a radio button group to the page.
Note: All buttons in the group are added to this page.
§Arguments
group- The radio button group to add
Sourcepub fn add_combo_box(&mut self, combo: ComboBoxWidget) -> &mut Self
pub fn add_combo_box(&mut self, combo: ComboBoxWidget) -> &mut Self
Sourcepub fn add_list_box(&mut self, list: ListBoxWidget) -> &mut Self
pub fn add_list_box(&mut self, list: ListBoxWidget) -> &mut Self
Sourcepub fn add_signature_field(&mut self, widget: SignatureWidget) -> &mut Self
pub fn add_signature_field(&mut self, widget: SignatureWidget) -> &mut Self
Add an unsigned signature placeholder field to the page.
Sourcepub fn signature_field(
&mut self,
name: impl Into<String>,
rect: Rect,
) -> &mut Self
pub fn signature_field( &mut self, name: impl Into<String>, rect: Rect, ) -> &mut Self
Convenience method: add an unsigned signature placeholder by name and rect.
Sourcepub fn add_annotation<A: Into<Annotation>>(
&mut self,
annotation: A,
) -> &mut Self
pub fn add_annotation<A: Into<Annotation>>( &mut self, annotation: A, ) -> &mut Self
Add any annotation type to the page.
This is a generic method that accepts any type that can be converted to an Annotation enum, including all the specific annotation types.
§Example
use pdf_oxide::writer::{LinkAnnotation, Annotation};
use pdf_oxide::geometry::Rect;
let link = LinkAnnotation::uri(
Rect::new(72.0, 720.0, 100.0, 12.0),
"https://example.com",
);
let mut writer = PdfWriter::new();
let mut page = writer.add_page(612.0, 792.0);
page.add_annotation(link);Auto Trait Implementations§
impl<'a> !UnwindSafe for PageBuilder<'a>
impl<'a> Freeze for PageBuilder<'a>
impl<'a> RefUnwindSafe for PageBuilder<'a>
impl<'a> Send for PageBuilder<'a>
impl<'a> Sync for PageBuilder<'a>
impl<'a> Unpin for PageBuilder<'a>
impl<'a> UnsafeUnpin for PageBuilder<'a>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.