Expand description
Shared slice owners with coordinated COW and duplicate policies.
Element/region reads share Rc/Arc storage. A native contiguous pointer request establishes unique ownership, including detaching any Weak references. Once unique, duplication copies the allocation instead of re-sharing it, preserving exposed pointers. This conservatively copies even an unexposed unique owner.
bool and String keep Rโs values in data2 (a logical vector or the string
element cache). Duplication copies data2 when present, through
duplicate_altrep_data2, and serialization falls back to an ordinary vector
once R has written to it.
Macrosยง
- impl_
shared_ ๐native - impl_
shared_ ๐slice
Staticsยง
- __
MX_ ๐ALTREP_ REG_ SHARED_ ARC_ BOOL - __
MX_ ๐ALTREP_ REG_ SHARED_ ARC_ F64 - __
MX_ ๐ALTREP_ REG_ SHARED_ ARC_ I32 - __
MX_ ๐ALTREP_ REG_ SHARED_ ARC_ RCOMPLEX - __
MX_ ๐ALTREP_ REG_ SHARED_ ARC_ RLOGICAL - __
MX_ ๐ALTREP_ REG_ SHARED_ ARC_ STRING - __
MX_ ๐ALTREP_ REG_ SHARED_ ARC_ U8 - __
MX_ ๐ALTREP_ REG_ SHARED_ RC_ BOOL - __
MX_ ๐ALTREP_ REG_ SHARED_ RC_ F64 - __
MX_ ๐ALTREP_ REG_ SHARED_ RC_ I32 - __
MX_ ๐ALTREP_ REG_ SHARED_ RC_ RCOMPLEX - __
MX_ ๐ALTREP_ REG_ SHARED_ RC_ RLOGICAL - __
MX_ ๐ALTREP_ REG_ SHARED_ RC_ STRING - __
MX_ ๐ALTREP_ REG_ SHARED_ RC_ U8
Functionsยง
- __
mx_ ๐ปaltrep_ reg_ builtin_ Arc_ RLogical - __
mx_ ๐ปaltrep_ reg_ builtin_ Arc_ Rcomplex - __
mx_ ๐ปaltrep_ reg_ builtin_ Arc_ String - __
mx_ ๐ปaltrep_ reg_ builtin_ Arc_ bool - __
mx_ ๐ปaltrep_ reg_ builtin_ Arc_ f64 - __
mx_ ๐ปaltrep_ reg_ builtin_ Arc_ i32 - __
mx_ ๐ปaltrep_ reg_ builtin_ Arc_ u8 - __
mx_ ๐ปaltrep_ reg_ builtin_ Rc_ RLogical - __
mx_ ๐ปaltrep_ reg_ builtin_ Rc_ Rcomplex - __
mx_ ๐ปaltrep_ reg_ builtin_ Rc_ String - __
mx_ ๐ปaltrep_ reg_ builtin_ Rc_ bool - __
mx_ ๐ปaltrep_ reg_ builtin_ Rc_ f64 - __
mx_ ๐ปaltrep_ reg_ builtin_ Rc_ i32 - __
mx_ ๐ปaltrep_ reg_ builtin_ Rc_ u8