I've been trying to understand how bytes works these days, and one thing I cannot figure out is: why is the data pointer atomic? So far I've only found calls to data.load and data.with_mut, but I could not find a case where it is actually mutated while shared. Grepping for data.store comes back empty.
I've been trying to understand how bytes works these days, and one thing I cannot figure out is: why is the data pointer atomic? So far I've only found calls to
data.load
anddata.with_mut
, but I could not find a case where it is actually mutated while shared. Grepping fordata.store
comes back empty.