Pro.Mutable

trait Mutable[A] extends Pro[A]

Read/write property

The usual implementation looks like:

class Foo:
 val name_*           : Pro.M[String] = Pro.M[String]("")
 def name             : String        = name_*()
 def name_=(v :String): Unit          = name_*() = v
 val bar_*            : Int.Pro.M     = Int.Pro.M(0)
 def bar              : Int           = value_*()
 def bar_=(v :Int)    : Unit          = value_*() = v
Companion
object
Source
__.scala
trait Pro[A]
class Object
trait Matchable
class Any

Def

def update(v: A): Unit

Updates value

Updates value

Updates property value

   val pro: Pro.M[String] = Pro.M[String]("")

   pro.update("abc") // Regular call

   pro() = "abc"     // Scala "syntactic sugar" call
Source
__.scala

Inherited

def apply(): A

Get value

Get value

Returns property value

   val pro: Pro.M[String] = Pro.M[String]("abc")

   val v1 = pro.apply() // Regular call
   val v2 = pro()       // Scala "syntactic sugar" call
Inherited from
Pro
Source
__.scala

Extension

Extension method from Mutable
Source
__.scala
Extension method from Mutable
Source
__.scala
@targetName("twoWay_View")
Extension method from Mutable
Source
__.scala
@targetName("twoWay_View")
Extension method from Mutable
Source
__.scala