SwiftstructCoherence
CRAttributedString
struct Coherence.CRAttributedString
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolCoherence.CRCodable
- protocolCoherence.CRDT
- protocolCoherence.CRMergeable
- protocolCoherence.CRType
- protocolCoherence.CursorIndexable
- protocolSwift.Encodable
- protocolSwift.Equatable
Members 55
- field
var stringRef: Coherence.CRAttributedStringRef?+0x0 - func
actionUndoingDifference(from: Coherence.CRAttributedString<A>) -> Coherence.CRAttributedString<A>.MutatingAction? - func
addAttributes(_: Coherence.CRAttributedString<A>.Attributes, range: _NSRange) -> () - func
append(String) -> () - func
apply(Coherence.CRAttributedString<A>.MutatingAction?) -> () - func
attributes(at: Int, effectiveRange: UnsafeMutablePointer<_NSRange>?) -> Coherence.CRAttributedString<A>.Attributes - func
canMerge(delta: Coherence.CRAttributedString<A>.Partial) -> Bool - func
copy(renamingReferences: [Coherence.CRKeyPath : Coherence.CRKeyPath]?) -> Coherence.CRAttributedString<A> - func
copy(renamingReferences: inout [Coherence.CRKeyPath : Coherence.CRKeyPath]) -> Coherence.CRAttributedString<A> - func
cursor(at: Int, affinity: Coherence.CRAffinity) -> Coherence.CRAttributedString<A>.Cursor - func
cursor(range: Range<Int>) -> Coherence.CursorRange<Coherence.CRAttributedString<A>.Cursor> - func
cursor(range: Range<Int>) -> (Coherence.CRAttributedString<A>.Cursor, Coherence.CRAttributedString<A>.Cursor) - func
delta(_: Coherence.CRContext, from: Coherence.CRAttributedString<A>) -> Coherence.CRAttributedString<A>.Partial? - func
finalizeTimestamps(Coherence.CRContext) -> () - func
hasDelta(from: Coherence.CRAttributedString<A>) -> Bool - func
index(of: Coherence.CRAttributedString<A>.Cursor) -> Int? - func
insert(contentsOf: String, at: Int) -> () - func
insert(contentsOf: NSAttributedString, at: Int) -> () - func
merge(delta: Coherence.CRAttributedString<A>.Partial) -> Coherence.MergeResult - func
merge(delta: Coherence.CRAttributedString<A>.Partial) -> Bool - func
merge(Coherence.CRAttributedString<A>) -> Coherence.MergeResult - func
merge(Coherence.CRAttributedString<A>) -> () - func
needToFinalizeTimestamps() -> Bool - func
newRefs(from: Coherence.CRAttributedString<A>) -> Set<Coherence.CRKeyPath> - func
observableDifference(from: Coherence.CRAttributedString<A>, with: Coherence.ReferenceDifferencer?) -> Coherence.CRAttributedString<A>.ObservableDifference? - func
range(of: Coherence.CursorRange<Coherence.CRAttributedString<A>.Cursor>) -> Range<Int>? - func
range(of: (Coherence.CRAttributedString<A>.Cursor, Coherence.CRAttributedString<A>.Cursor)) -> Range<Int>? - func
removeSubrange(ClosedRange<Int>) -> () - func
removeSubrange(Range<Int>) -> () - func
replaceSubrange(_: Range<Int>, with: String) -> () - func
setAttributes(_: Coherence.CRAttributedString<A>.Attributes?, range: _NSRange) -> () - func
visitReferences(Coherence.ReferenceVisitor) -> () - init
init(defaultState: ()) throws -> Coherence.CRAttributedString<A> - init
init(from: Coherence.CRDecoder) throws -> Coherence.CRAttributedString<A> - init
init(string: String) -> Coherence.CRAttributedString<A> - init
init(string: NSAttributedString) -> Coherence.CRAttributedString<A> - init
init() -> Coherence.CRAttributedString<A> - init
init(_: NSAttributedString, transformAttributes: ([NSAttributedStringKey : Any]) -> Coherence.CRAttributedString<A>.Attributes) -> Coherence.CRAttributedString<A> - init
init(_: Coherence.CRContext, string: String) -> Coherence.CRAttributedString<A> - init
init(_: Coherence.CRContext, string: NSAttributedString) -> Coherence.CRAttributedString<A> - init
init(Coherence.CRContext) -> Coherence.CRAttributedString<A> - init
init(Coherence.CRAttributedString<A>.Substring) -> Coherence.CRAttributedString<A> - init
init(String) -> Coherence.CRAttributedString<A> - init
init(NSAttributedString) -> Coherence.CRAttributedString<A> - subscript
subscript.getter : (Range<Int>) -> Coherence.CRAttributedString<A>.Substring - typealias
typealias Cursor = Coherence.CRAttributedString<A>.Cursor - typealias
typealias MutatingAction = Coherence.CRAttributedString<A>.MutatingAction - typealias
typealias ObservableDifference = Coherence.CRAttributedString<A>.ObservableDifference - typealias
typealias Partial = Coherence.CRAttributedString<A>.Partial - var
var attributedString: NSAttributedString { get } - var
var count: Int { get } - var
var isDefaultState: Bool { get } - var
var minEncodingVersion: Coherence.CRCodableVersion { get } - var
var runs: Coherence.CRAttributedString<A>.Runs { get } - var
var version: Coherence.CRVersion { get }
Header
struct CRAttributedString<A> where A: Coherence.CRAttributeStringAttributeScope { @dynamicMemberLookup struct Attributes { struct Keys { struct Iterator { var keyIterator: Swift.LazyFilterSequence<[__C.NSAttributedStringKey : Any].Keys>.Iterator func next() -> __C.NSAttributedStringKey? } struct Index { var index: [__C.NSAttributedStringKey : Any].Index static func < (_: Coherence.CRAttributedString<A>.Attributes.Keys.Index, _: Coherence.CRAttributedString<A>.Attributes.Keys.Index) -> Swift.Bool } let keys: Swift.LazyFilterSequence<[__C.NSAttributedStringKey : Any].Keys> var endIndex: Coherence.CRAttributedString<A>.Attributes.Keys.Index { get } var startIndex: Coherence.CRAttributedString<A>.Attributes.Keys.Index { get } func makeIterator() -> Coherence.CRAttributedString<A>.Attributes.Keys.Iterator func index(after: Coherence.CRAttributedString<A>.Attributes.Keys.Index) -> Coherence.CRAttributedString<A>.Attributes.Keys.Index subscript(_: Coherence.CRAttributedString<A>.Attributes.Keys.Index) -> __C.NSAttributedStringKey { get } } var attributes: [__C.NSAttributedStringKey : Any] init(from: Coherence.CRDecoder) throws init() var count: Swift.Int { get } var debugDescription: Swift.String { get } var description: Swift.String { get } var keys: Coherence.CRAttributedString<A>.Attributes.Keys { get } func encode(to: Coherence.CREncoder) throws subscript<A1>(dynamicMember: Swift.WritableKeyPath<A, A1>) -> A1.Value? where A1: Coherence.CRAttributeStringKey { get set } } struct Runs { @dynamicMemberLookup struct Run { var range: Swift.Range<Swift.Int> var attributes: Coherence.CRAttributedString<A>.Attributes subscript<A1>(dynamicMember: Swift.WritableKeyPath<A, A1>) -> A1.Value? where A1: Coherence.CRAttributeStringKey { get } } var range: Swift.Range<Swift.Int> var stringRef: Coherence.CRAttributedStringRef func next() -> Coherence.CRAttributedString<A>.Runs.Run? } @dynamicMemberLookup struct Substring { let range: Swift.Range<Swift.Int> var stringRef: Coherence.CRAttributedStringRef var attributedString: __C.NSAttributedString { get } var attributes: Coherence.CRAttributedString<A>.Attributes { get set } var endIndex: Swift.Int { get } var runs: Coherence.CRAttributedString<A>.Runs { get } var startIndex: Swift.Int { get } subscript<A1>(dynamicMember: Swift.WritableKeyPath<A, A1>) -> A1.Value? where A1: Coherence.CRAttributeStringKey { get set } } struct ObservableDifference { enum Edit { case characters(range: __C._NSRange, changeInLength: Swift.Int) case attributes(range: __C._NSRange) var description: Swift.String { get } } let edits: [Coherence.CRAttributedString<A>.ObservableDifference.Edit] } struct MutatingAction { let undoCommand: Swift.AnyObject? let editedAttributes: [(__C._TtC9Coherence24CRTTMergeableStringRange, [__C.NSAttributedStringKey : Any])] } struct Cursor { var cursor: Coherence.CRString.Cursor init(from: Coherence.CRDecoder) throws var minEncodingVersion: Coherence.CRCodableVersion { get } func finalizeTimestamps(_: Coherence.CRContext) func needToFinalizeTimestamps() -> Swift.Bool func encode(to: Coherence.CREncoder) throws } struct Partial { var delta: __C._TtC9Coherence24CRTTMergeableStringDelta init(from: Coherence.CRDecoder) throws func visitReferences(_: any Coherence.ReferenceVisitor) func merge(delta: Coherence.CRAttributedString<A>.Partial) -> Swift.Bool func encode(to: Coherence.CREncoder) throws func canMerge(delta: Coherence.CRAttributedString<A>.Partial) -> Swift.Bool } var stringRef: Coherence.CRAttributedStringRef? init(defaultState: ()) throws init(from: Coherence.CRDecoder) throws init(string: Swift.String) init(string: __C.NSAttributedString) init() init(_: __C.NSAttributedString, transformAttributes: (_: [__C.NSAttributedStringKey : Any]) -> Coherence.CRAttributedString<A>.Attributes) init(_: Coherence.CRContext, string: Swift.String) init(_: Coherence.CRContext, string: __C.NSAttributedString) init(_: Coherence.CRContext) init(_: Coherence.CRAttributedString<A>.Substring) init(_: Swift.String) init(_: __C.NSAttributedString) var attributedString: __C.NSAttributedString { get } var count: Swift.Int { get } var isDefaultState: Swift.Bool { get } var minEncodingVersion: Coherence.CRCodableVersion { get } var runs: Coherence.CRAttributedString<A>.Runs { get } var version: Coherence.CRVersion { get } func attributes(at: Swift.Int, effectiveRange: Swift.UnsafeMutablePointer<__C._NSRange>?) -> Coherence.CRAttributedString<A>.Attributes func addAttributes(_: Coherence.CRAttributedString<A>.Attributes, range: __C._NSRange) func setAttributes(_: Coherence.CRAttributedString<A>.Attributes?, range: __C._NSRange) func removeSubrange(_: Swift.ClosedRange<Swift.Int>) func removeSubrange(_: Swift.Range<Swift.Int>) func replaceSubrange(_: Swift.Range<Swift.Int>, with: Swift.String) func visitReferences(_: any Coherence.ReferenceVisitor) func finalizeTimestamps(_: Coherence.CRContext) func observableDifference(from: Coherence.CRAttributedString<A>, with: (any Coherence.ReferenceDifferencer)?) -> Coherence.CRAttributedString<A>.ObservableDifference? func actionUndoingDifference(from: Coherence.CRAttributedString<A>) -> Coherence.CRAttributedString<A>.MutatingAction? func needToFinalizeTimestamps() -> Swift.Bool func copy(renamingReferences: [Coherence.CRKeyPath : Coherence.CRKeyPath]?) -> Coherence.CRAttributedString<A> func copy(renamingReferences: inout [Coherence.CRKeyPath : Coherence.CRKeyPath]) -> Coherence.CRAttributedString<A> func apply(_: Coherence.CRAttributedString<A>.MutatingAction?) func delta(_: Coherence.CRContext, from: Coherence.CRAttributedString<A>) -> Coherence.CRAttributedString<A>.Partial? func index(of: Coherence.CRAttributedString<A>.Cursor) -> Swift.Int? func merge(delta: Coherence.CRAttributedString<A>.Partial) -> Coherence.MergeResult func merge(delta: Coherence.CRAttributedString<A>.Partial) -> Swift.Bool func merge(_: Coherence.CRAttributedString<A>) -> Coherence.MergeResult func merge(_: Coherence.CRAttributedString<A>) func range(of: Coherence.CursorRange<Coherence.CRAttributedString<A>.Cursor>) -> Swift.Range<Swift.Int>? func range(of: (Coherence.CRAttributedString<A>.Cursor, Coherence.CRAttributedString<A>.Cursor)) -> Swift.Range<Swift.Int>? func append(_: Swift.String) func cursor(at: Swift.Int, affinity: Coherence.CRAffinity) -> Coherence.CRAttributedString<A>.Cursor func cursor(range: Swift.Range<Swift.Int>) -> Coherence.CursorRange<Coherence.CRAttributedString<A>.Cursor> func cursor(range: Swift.Range<Swift.Int>) -> (Coherence.CRAttributedString<A>.Cursor, Coherence.CRAttributedString<A>.Cursor) func insert(contentsOf: Swift.String, at: Swift.Int) func insert(contentsOf: __C.NSAttributedString, at: Swift.Int) func newRefs(from: Coherence.CRAttributedString<A>) -> Swift.Set<Coherence.CRKeyPath> func canMerge(delta: Coherence.CRAttributedString<A>.Partial) -> Swift.Bool func hasDelta(from: Coherence.CRAttributedString<A>) -> Swift.Bool subscript(_: Swift.Range<Swift.Int>) -> Coherence.CRAttributedString<A>.Substring { get set } }