fn update_allocated_bytes_delta(&self, transaction: &mut Transaction<'_>, mut delta: i64) {
        if let Some(existing_delta) = transaction.get_allocated_bytes_delta(self.object_id()) {
            delta += existing_delta;
        }
        if delta == 0 {
            transaction
                .remove(self.object_id(), Mutation::AllocatedBytes(AllocatedBytesMutation(0)));
        } else {
            transaction
                .add(self.object_id(), Mutation::AllocatedBytes(AllocatedBytesMutation(delta)));
        }
    }
// Updates the allocated_bytes delta within a transaction so that it includes `delta`.
Updates the allocated_bytes delta within a transaction so that it includes `delta`.
Updates the allocated_bytes delta within a transaction so that it includes ` delta ` .
fn update_allocated_bytes_delta(&self, transaction: &mut Transaction<'_>, mut delta: i64) {
        if let Some(existing_delta) = transaction.get_allocated_bytes_delta(self.object_id()) {
            delta += existing_delta;
        }
        if delta == 0 {
            transaction
                .remove(self.object_id(), Mutation::AllocatedBytes(AllocatedBytesMutation(0)));
        } else {
            transaction
                .add(self.object_id(), Mutation::AllocatedBytes(AllocatedBytesMutation(delta)));
        }
    }
fn update_allocated_bytes_delta ( & self , transaction : & mut Transaction < ' _ > , mut delta : i64 ) { if let Some ( existing_delta ) = transaction . get_allocated_bytes_delta ( self . object_id ( ) ) { delta += existing_delta ; } if delta == 0 { transaction . remove ( self . object_id ( ) , Mutation :: AllocatedBytes ( AllocatedBytesMutation ( 0 ) ) ) ; } else { transaction . add ( self . object_id ( ) , Mutation :: AllocatedBytes ( AllocatedBytesMutation ( delta ) ) ) ; } }
Updates the allocated_bytes delta within a transaction so that it includes `delta`.
Updates the allocated_bytes delta within a transaction so that it includes ` delta ` .
&self
transaction
&mut Transaction<'_>
delta
i64
&self
transaction
&mut Transaction<'_>
delta
i64