pub struct ObjId {
pub num: u32,
pub generation: u16,
}Expand description
An indirect-object identifier: object number + generation number (§7.3.10 — “together … shall uniquely identify an indirect object”).
Object numbers are positive (0 is reserved for the free-list head,
§7.5.4); generations run 0–65,535 (65,535 marks a never-reusable
entry). u32/u16 cover the spec ranges exactly (Annex C caps
object numbers well inside u32).
Fields§
§num: u32Object number (positive; 0 never identifies a real object).
generation: u16Generation number (0–65,535).
Implementations§
Trait Implementations§
impl Copy for ObjId
impl Eq for ObjId
Source§impl Ord for ObjId
impl Ord for ObjId
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 ObjId
impl PartialOrd for ObjId
impl StructuralPartialEq for ObjId
Auto Trait Implementations§
impl Forget for ObjId
impl Freeze for ObjId
impl Move for ObjId
impl RefUnwindSafe for ObjId
impl Send for ObjId
impl Sync for ObjId
impl Unpin for ObjId
impl UnsafeUnpin for ObjId
impl UnwindSafe for ObjId
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