pub struct XRefEntryInfo {
pub entry_type: XRefEntryType,
pub field2: u64,
pub field3: u64,
}Expand description
Extended XRef entry information
Fields§
§entry_type: XRefEntryTypeEntry type
field2: u64Field 2 interpretation depends on type:
- Free: next free object number
- Uncompressed: byte offset
- Compressed: object stream number
field3: u64Field 3 interpretation depends on type:
- Free: generation number
- Uncompressed: generation number
- Compressed: index within object stream
Implementations§
Source§impl XRefEntryInfo
impl XRefEntryInfo
Sourcepub fn new(entry_type: XRefEntryType, field2: u64, field3: u64) -> Self
pub fn new(entry_type: XRefEntryType, field2: u64, field3: u64) -> Self
Create a new XRef entry info
Sourcepub fn get_offset(&self) -> Option<u64>
pub fn get_offset(&self) -> Option<u64>
Get byte offset for uncompressed objects
Sourcepub fn get_generation(&self) -> u16
pub fn get_generation(&self) -> u16
Get generation number
Sourcepub fn get_compressed_info(&self) -> Option<(u32, u32)>
pub fn get_compressed_info(&self) -> Option<(u32, u32)>
Get compressed object info (stream number, index)
Trait Implementations§
Source§impl Clone for XRefEntryInfo
impl Clone for XRefEntryInfo
Source§fn clone(&self) -> XRefEntryInfo
fn clone(&self) -> XRefEntryInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for XRefEntryInfo
impl Debug for XRefEntryInfo
Source§impl PartialEq for XRefEntryInfo
impl PartialEq for XRefEntryInfo
impl StructuralPartialEq for XRefEntryInfo
Auto Trait Implementations§
impl Freeze for XRefEntryInfo
impl RefUnwindSafe for XRefEntryInfo
impl Send for XRefEntryInfo
impl Sync for XRefEntryInfo
impl Unpin for XRefEntryInfo
impl UnwindSafe for XRefEntryInfo
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more