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
Source
__.scala
trait Pro[A]
class java.lang.Object
trait scala.Matchable
class Any

Def

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
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

Extension

def bindTo[A](v: Pro.Observable[_ <: A]): Event.Control
Source
__.scala
@scala.annotation.targetName("mutableMap_View")
def mutableMap_^[A](m: A => B, r: B => A): Pro.Mutable[B]
Source
__.scala
@scala.annotation.targetName("mutableMap_View")
def mutableMap_^[A](using bm: ReversibleFunction[A, B]): Pro.Mutable[B]
Source
__.scala