struct TextEditSnapshot
source · line 13public
public struct TextEditSnapshot(val text: String, val anchor: TextPosition, val cursor: TextPosition, val markedRange: Utf8Range? = None)
field cursor
source · line 16public
val cursor: TextPosition
constructor constructor
source · line 13public
constructor(val text: String, val anchor: TextPosition, val cursor: TextPosition, val markedRange: Utf8Range? = None)
parameter markedRange
source · line 17public
val markedRange: Utf8Range? = None
parameter text
source · line 14public
val text: String
parameter cursor
source · line 16public
val cursor: TextPosition
parameter anchor
source · line 15public
val anchor: TextPosition
field anchor
source · line 15public
val anchor: TextPosition
field markedRange
source · line 17public
val markedRange: Utf8Range? = None
field text
source · line 14public
val text: String
function equals
source · line 13publiccompiler-derived
operator fun equals(other: TextEditSnapshot): Boolean
This derived operation is available when each field or payload type supports same-type equality. Required types: String, TextPosition, Option<Utf8Range>.