_retain

func _retain<Element>(value: &Element) 'alloc -> Void

Add one reference to every refcounted buffer value owns — the element half of a copy-on-write buffer copy. Dispatches structurally per specialization (scalars are a no-op; static data is unmanaged), mirroring how a drop of the same value would release.

View Source
pub func _retain<Element>(value: &Element) 'alloc -> Void {
	#_ir(value) { retain Element $0 }
}