In Move 2024 edition, functions can be invoked directly on variables using dot-notation method syntax (`coin.value()` instead of `coin::value(&coin)`).
move
module my_package::counter {
public struct Counter has key { id: UID, value: u64 }
public fun increment(self: &mut Counter) {
self.value = self.value + 1;
}
}
// In Move 2024:
counter.increment();