pub struct SourceAddress {
pub stream_ref: (u32, u16),
pub contents_index: u32,
pub operator_index: u32,
pub operand_index: u32,
}Expand description
Address of one show-operand (Tj, or one string item inside a TJ array) before any glyph
index is known — built once per operator, then narrowed per glyph via
SourceAddress::with_glyph.
Fields§
§stream_ref: (u32, u16)§contents_index: u32§operator_index: u32§operand_index: u32Implementations§
Source§impl SourceAddress
impl SourceAddress
Sourcepub fn with_glyph(&self, glyph_range: (u32, u32)) -> GlyphSourceAddress
pub fn with_glyph(&self, glyph_range: (u32, u32)) -> GlyphSourceAddress
Narrows this operand-level address to one glyph’s byte range within it. Adjacent
GlyphSourceAddress values sharing the same operand fields are merged by §5.3’s island
grouping into a single PdfSourceSpan (min glyph_start, max glyph_end).
Trait Implementations§
Source§impl Clone for SourceAddress
impl Clone for SourceAddress
Auto Trait Implementations§
impl Freeze for SourceAddress
impl RefUnwindSafe for SourceAddress
impl Send for SourceAddress
impl Sync for SourceAddress
impl Unpin for SourceAddress
impl UnsafeUnpin for SourceAddress
impl UnwindSafe for SourceAddress
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
Converts
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> ⓘ
Converts
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
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
Convert this type into
T, using the provided data to resolve any offsets.