matches
方法(或屬性)屬於 scala.quoted.Quotes
特性(trait),其相關用法說明如下。
用法:
def matches(that: Expr[Any]): Boolean
模式匹配 this
與 that
。有效地執行深度相等檢查。它相當於
this match
case '{...} => true // where the contents of the pattern are the contents of `that`
case _ => false
源碼:
- Quotes.scala
相關用法
- Scala Quotes.reflectModule用法及代碼示例
- Scala Quotes.reflect用法及代碼示例
- Scala Queue.runWith用法及代碼示例
- Scala Queue drop()用法及代碼示例
- Scala Queue toMap()用法及代碼示例
- Scala Queue.combinations用法及代碼示例
- Scala Queue.elementWise用法及代碼示例
- Scala Queue.permutations用法及代碼示例
- Scala Queue filter()用法及代碼示例
- Scala Queue dropWhile()用法及代碼示例
- Scala Queue take()用法及代碼示例
- Scala Queue.groupBy用法及代碼示例
- Scala Queue.addString用法及代碼示例
- Scala Queue.sliding用法及代碼示例
- Scala Queue tail()用法及代碼示例
- Scala Queue diff()用法及代碼示例
- Scala Queue max()用法及代碼示例
- Scala Queue.sizeIs用法及代碼示例
- Scala Queue toArray()用法及代碼示例
- Scala Queue.sortWith用法及代碼示例
- Scala Queue.groupMapReduce用法及代碼示例
- Scala Queue exists()用法及代碼示例
- Scala Queue toSeq()用法及代碼示例
- Scala Queue.collectFirst用法及代碼示例
- Scala Queue clear()用法及代碼示例
注:本文由純淨天空篩選整理自scala-lang.org大神的英文原創作品 Quotes.matches。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。