How does one access the value inside a modules own resource from a pass by value argument like the following?
resource x {
value: u64
}
public func(input: Self.x): u64 {
let result: u64;
//How would you get the value inside the resource?
}
It seems to be possible if the argument is a mutable reference but not when the resource is passed by value??