_load

func _load<Element>(ptr: RawPtr) 'alloc -> Element

Loads and re-owns the Element bits stored at ptr.

Reading an uninitialized, moved-out, misaligned, or differently typed slot is invalid. Callers must also ensure the slot is not later destroyed as a second owner.

View Source
pub func _load<Element>(ptr: RawPtr) 'alloc -> Element {
	#_ir(ptr) { %? = load Element $0 }
}