Lets implicitly convert a labeled outer edge to its label:
Lets implicitly convert a labeled outer edge to its label:
case class MyLabel(val i: Int) val eOuter = LUnDiEdge(1,3)(MyLabel(4)) object MyLabelConversion extends OuterLEdgeImplicits[MyLabel] import MyLabelConversion._ val four = eOuter.i
Lets implicitly convert a label to its user type:
Lets implicitly convert a label to its user type:
case class MyLabel(val i: Int) val eOuter = LUnDiEdge(1,3)(MyLabel(4)) object MyLabelConversion extends OuterLEdgeImplicits[MyLabel] import MyLabelConversion._ val label: MyLabel = eOuter.label
As this conversion is not type safe, the user has to ensure that label
is of the type UL
.
(outerLEdgeImplicits: StringAdd).self
(outerLEdgeImplicits: StringFormat).self
(outerLEdgeImplicits: ArrowAssoc[OuterLEdgeImplicits[UL]]).x
(Since version 2.10.0) Use leftOfArrow
instead
(outerLEdgeImplicits: Ensuring[OuterLEdgeImplicits[UL]]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
Implicit conversions from an outer labeled edge to its label.
type of the user label.