Skip to main content

write_field

Function write_field 

Source
pub unsafe fn write_field<T: Copy>(object: Object, offset: usize, value: T)
Expand description

Writes a managed object’s field at offset. Only for fields that don’t hold references.

§Safety

object must be a live object with a field of type T at offset.