pub struct ObjRef {
pub num: u32,
pub generation: u16,
}Expand description
An indirect object’s identity: the pair a N G obj header carries and a
cross-reference entry keys.
A reference token (12 3 R) carries a generation too, but resolution
ignores it — see Resolve. The generation is kept because the
cross-reference table and the writer both need it.
Fields§
§num: u32The object number.
generation: u16The generation number.
Spelled out rather than gen, which Rust 2024 reserves.
Implementations§
Trait Implementations§
impl Copy for ObjRef
impl Eq for ObjRef
Source§impl Ord for ObjRef
impl Ord for ObjRef
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for ObjRef
impl PartialOrd for ObjRef
impl StructuralPartialEq for ObjRef
Auto Trait Implementations§
impl Freeze for ObjRef
impl RefUnwindSafe for ObjRef
impl Send for ObjRef
impl Sync for ObjRef
impl Unpin for ObjRef
impl UnsafeUnpin for ObjRef
impl UnwindSafe for ObjRef
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