_storage_is_unique

func _storage_is_unique<T>(xs: [T]) -> Bool

Whether this array's buffer has exactly one owner. Implicit sharing duplicates values by retain at value boundaries, so a Deinit hook runs once per copy; a hook that must act exactly once per logical value (core containers' teardown, stdlib channel endpoints) gates on the owner count of a carried buffer, and this is that gate.

View Source
pub func _storage_is_unique<T>(xs: [T]) -> Bool {
	_is_unique(ptr: xs.storage.base)
}