---
title: "structuralEqualityPolicy"
description: "A policy to treat values of a [MutableState] as equivalent if they are structurally (==) equal.

Setting [MutableState.value] to its current structurally (==) equal value is not considered a
change. When applying a [MutableSnapshot], if the snapshot changes the value to the equivalent
value the parent snapshot has is not considered a conflict."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
public fun <T> structuralEqualityPolicy(): SnapshotMutationPolicy<T>
```


A policy to treat values of a `MutableState` as equivalent if they are structurally (==) equal.

Setting `MutableState.value` to its current structurally (==) equal value is not considered a
change. When applying a `MutableSnapshot`, if the snapshot changes the value to the equivalent
value the parent snapshot has is not considered a conflict.



