pub struct DanglingRef {
pub holder: String,
pub slot: String,
pub value_type: &'static str,
pub target_index: usize,
pub table_len: usize,
}Expand description
A reference to an entity whose storage no longer exists.
Only possible once restore actually releases local VM: truncating an
entity table makes every id at or above the new length invalid. Any
surviving reference to one is a use-after-free, and indexing the table
with it panics.
Fields§
§holder: StringWhere the stale reference lives.
slot: StringWhich slot inside the holder: a dict key, an array index, or a stack position.
value_type: &'static strPostScript type name of the reference’s target.
target_index: usizeEntity index the reference points at.
table_len: usizeCurrent length of the entity table it points into.
Trait Implementations§
Source§impl Clone for DanglingRef
impl Clone for DanglingRef
Source§fn clone(&self) -> DanglingRef
fn clone(&self) -> DanglingRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DanglingRef
impl Debug for DanglingRef
Source§impl Display for DanglingRef
impl Display for DanglingRef
impl Eq for DanglingRef
Source§impl PartialEq for DanglingRef
impl PartialEq for DanglingRef
impl StructuralPartialEq for DanglingRef
Auto Trait Implementations§
impl Freeze for DanglingRef
impl RefUnwindSafe for DanglingRef
impl Send for DanglingRef
impl Sync for DanglingRef
impl Unpin for DanglingRef
impl UnsafeUnpin for DanglingRef
impl UnwindSafe for DanglingRef
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