pub struct PPtr {
pub file_id: i32,
pub path_id: i64,
}Expand description
An object reference as stored (a PPtr): the file id, 0 for the file that holds it and otherwise one more than the
index of an external file in that file’s list, and the object’s path id, 0 for a null reference. A script’s
serialized fields store references this way in 12 bytes; Player::resolve_pptr finds the object.
Fields§
§file_id: i32m_FileID.
path_id: i64m_PathID.
Trait Implementations§
impl Copy for PPtr
impl Eq for PPtr
impl StructuralPartialEq for PPtr
Auto Trait Implementations§
impl Freeze for PPtr
impl RefUnwindSafe for PPtr
impl Send for PPtr
impl Sync for PPtr
impl Unpin for PPtr
impl UnsafeUnpin for PPtr
impl UnwindSafe for PPtr
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.