//===----------------------------------------------------------------------===// // // This source file is part of the Swift Collections open source project // // Copyright (c) 2024 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE.txt for license information // //===----------------------------------------------------------------------===// #if !COLLECTIONS_SINGLE_MODULE import Future #endif #if false // FIXME: Follow up on compiler crash when deserializing this conformance extension Deque: RandomAccessContainer { @lifetime(borrow self) public func borrowElement(at index: Int) -> Borrow { _storage.value.borrowElement(at: index) } @available(SwiftStdlib 6.2, *) @lifetime(borrow self) public func nextSpan(after index: inout Int) -> Span { _storage.value.nextSpan(after: &index) } @available(SwiftStdlib 6.2, *) @lifetime(borrow self) public func previousSpan(before index: inout Int) -> Span { _storage.value.previousSpan(before: &index) } } #endif