SwiftstructCoherence

struct Coherence.CRAttributedString

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 55

  1. fieldvar stringRef: Coherence.CRAttributedStringRef?+0x0
  2. funcactionUndoingDifference(from: Coherence.CRAttributedString<A>) -> Coherence.CRAttributedString<A>.MutatingAction?
  3. funcaddAttributes(_: Coherence.CRAttributedString<A>.Attributes, range: _NSRange) -> ()
  4. funcappend(String) -> ()
  5. funcapply(Coherence.CRAttributedString<A>.MutatingAction?) -> ()
  6. funcattributes(at: Int, effectiveRange: UnsafeMutablePointer<_NSRange>?) -> Coherence.CRAttributedString<A>.Attributes
  7. funccanMerge(delta: Coherence.CRAttributedString<A>.Partial) -> Bool
  8. funccopy(renamingReferences: [Coherence.CRKeyPath : Coherence.CRKeyPath]?) -> Coherence.CRAttributedString<A>
  9. funccopy(renamingReferences: inout [Coherence.CRKeyPath : Coherence.CRKeyPath]) -> Coherence.CRAttributedString<A>
  10. funccursor(at: Int, affinity: Coherence.CRAffinity) -> Coherence.CRAttributedString<A>.Cursor
  11. funccursor(range: Range<Int>) -> Coherence.CursorRange<Coherence.CRAttributedString<A>.Cursor>
  12. funccursor(range: Range<Int>) -> (Coherence.CRAttributedString<A>.Cursor, Coherence.CRAttributedString<A>.Cursor)
  13. funcdelta(_: Coherence.CRContext, from: Coherence.CRAttributedString<A>) -> Coherence.CRAttributedString<A>.Partial?
  14. funcfinalizeTimestamps(Coherence.CRContext) -> ()
  15. funchasDelta(from: Coherence.CRAttributedString<A>) -> Bool
  16. funcindex(of: Coherence.CRAttributedString<A>.Cursor) -> Int?
  17. funcinsert(contentsOf: String, at: Int) -> ()
  18. funcinsert(contentsOf: NSAttributedString, at: Int) -> ()
  19. funcmerge(delta: Coherence.CRAttributedString<A>.Partial) -> Coherence.MergeResult
  20. funcmerge(delta: Coherence.CRAttributedString<A>.Partial) -> Bool
  21. funcmerge(Coherence.CRAttributedString<A>) -> Coherence.MergeResult
  22. funcmerge(Coherence.CRAttributedString<A>) -> ()
  23. funcneedToFinalizeTimestamps() -> Bool
  24. funcnewRefs(from: Coherence.CRAttributedString<A>) -> Set<Coherence.CRKeyPath>
  25. funcobservableDifference(from: Coherence.CRAttributedString<A>, with: Coherence.ReferenceDifferencer?) -> Coherence.CRAttributedString<A>.ObservableDifference?
  26. funcrange(of: Coherence.CursorRange<Coherence.CRAttributedString<A>.Cursor>) -> Range<Int>?
  27. funcrange(of: (Coherence.CRAttributedString<A>.Cursor, Coherence.CRAttributedString<A>.Cursor)) -> Range<Int>?
  28. funcremoveSubrange(ClosedRange<Int>) -> ()
  29. funcremoveSubrange(Range<Int>) -> ()
  30. funcreplaceSubrange(_: Range<Int>, with: String) -> ()
  31. funcsetAttributes(_: Coherence.CRAttributedString<A>.Attributes?, range: _NSRange) -> ()
  32. funcvisitReferences(Coherence.ReferenceVisitor) -> ()
  33. initinit(defaultState: ()) throws -> Coherence.CRAttributedString<A>
  34. initinit(from: Coherence.CRDecoder) throws -> Coherence.CRAttributedString<A>
  35. initinit(string: String) -> Coherence.CRAttributedString<A>
  36. initinit(string: NSAttributedString) -> Coherence.CRAttributedString<A>
  37. initinit() -> Coherence.CRAttributedString<A>
  38. initinit(_: NSAttributedString, transformAttributes: ([NSAttributedStringKey : Any]) -> Coherence.CRAttributedString<A>.Attributes) -> Coherence.CRAttributedString<A>
  39. initinit(_: Coherence.CRContext, string: String) -> Coherence.CRAttributedString<A>
  40. initinit(_: Coherence.CRContext, string: NSAttributedString) -> Coherence.CRAttributedString<A>
  41. initinit(Coherence.CRContext) -> Coherence.CRAttributedString<A>
  42. initinit(Coherence.CRAttributedString<A>.Substring) -> Coherence.CRAttributedString<A>
  43. initinit(String) -> Coherence.CRAttributedString<A>
  44. initinit(NSAttributedString) -> Coherence.CRAttributedString<A>
  45. subscriptsubscript.getter : (Range<Int>) -> Coherence.CRAttributedString<A>.Substring
  46. typealiastypealias Cursor = Coherence.CRAttributedString<A>.Cursor
  47. typealiastypealias MutatingAction = Coherence.CRAttributedString<A>.MutatingAction
  48. typealiastypealias ObservableDifference = Coherence.CRAttributedString<A>.ObservableDifference
  49. typealiastypealias Partial = Coherence.CRAttributedString<A>.Partial
  50. varvar attributedString: NSAttributedString { get }
  51. varvar count: Int { get }
  52. varvar isDefaultState: Bool { get }
  53. varvar minEncodingVersion: Coherence.CRCodableVersion { get }
  54. varvar runs: Coherence.CRAttributedString<A>.Runs { get }
  55. varvar version: Coherence.CRVersion { get }
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
    }
}