Round commit graph connections
This commit is contained in:
@@ -1487,18 +1487,20 @@ public struct CommitRow: Equatable, Hashable {
|
||||
public var topLanes: [UInt32]
|
||||
public var bottomLanes: [UInt32]
|
||||
public var nodeLane: UInt32?
|
||||
public var connections: [UInt32]
|
||||
public var topConnections: [UInt32]
|
||||
public var bottomConnections: [UInt32]
|
||||
|
||||
// Default memberwise initializers are never public by default, so we
|
||||
// declare one manually.
|
||||
public init(sha: String, title: String, detail: String, topLanes: [UInt32], bottomLanes: [UInt32], nodeLane: UInt32?, connections: [UInt32]) {
|
||||
public init(sha: String, title: String, detail: String, topLanes: [UInt32], bottomLanes: [UInt32], nodeLane: UInt32?, topConnections: [UInt32], bottomConnections: [UInt32]) {
|
||||
self.sha = sha
|
||||
self.title = title
|
||||
self.detail = detail
|
||||
self.topLanes = topLanes
|
||||
self.bottomLanes = bottomLanes
|
||||
self.nodeLane = nodeLane
|
||||
self.connections = connections
|
||||
self.topConnections = topConnections
|
||||
self.bottomConnections = bottomConnections
|
||||
}
|
||||
|
||||
|
||||
@@ -1523,7 +1525,8 @@ public struct FfiConverterTypeCommitRow: FfiConverterRustBuffer {
|
||||
topLanes: FfiConverterSequenceUInt32.read(from: &buf),
|
||||
bottomLanes: FfiConverterSequenceUInt32.read(from: &buf),
|
||||
nodeLane: FfiConverterOptionUInt32.read(from: &buf),
|
||||
connections: FfiConverterSequenceUInt32.read(from: &buf)
|
||||
topConnections: FfiConverterSequenceUInt32.read(from: &buf),
|
||||
bottomConnections: FfiConverterSequenceUInt32.read(from: &buf)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -1534,7 +1537,8 @@ public struct FfiConverterTypeCommitRow: FfiConverterRustBuffer {
|
||||
FfiConverterSequenceUInt32.write(value.topLanes, into: &buf)
|
||||
FfiConverterSequenceUInt32.write(value.bottomLanes, into: &buf)
|
||||
FfiConverterOptionUInt32.write(value.nodeLane, into: &buf)
|
||||
FfiConverterSequenceUInt32.write(value.connections, into: &buf)
|
||||
FfiConverterSequenceUInt32.write(value.topConnections, into: &buf)
|
||||
FfiConverterSequenceUInt32.write(value.bottomConnections, into: &buf)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user