---
source: tests/backends_swift_snapshot_test.rs
expression: "&file.content"
---
// Generated by alef. Do not edit by hand.
// swift-format-ignore-file

import Foundation
import RustBridge

/// Item struct.
public typealias Item = RustBridge.Item

// MARK: - Free-function Forwarders
// Re-export every public free function on the source Rust crate as a
// top-level `public func` on the host module so consumers do not need to
// `import RustBridge` directly. Forwarders take Swift-native parameter
// types and convert to the swift-bridge runtime types internally.

/// Get all items.
public func getItems() -> [Item] {
    return RustBridge.getItems().map { ref in var item = try RustBridge.Item(ptr: ref.ptr); item.isOwned = false; return item }
}

// swift-bridge opaque type used across Task.detached boundaries — Rust type is Send + Sync.
extension RustBridge.Item: @unchecked Sendable {}
