Files
SWCompression/Sources/Common/Container/ContainerEntry.swift
T
Timofey Solomko 05268bd44e [docs] Add "missing" docs for Container.Entry and and ContainerEntry.Info
Apparently, something changed in Swift 4.1 and sourcekitten/jazzy now detects associated types and produces documentation for them.
2018-04-13 18:53:58 +03:00

21 lines
545 B
Swift

// Copyright (c) 2018 Timofey Solomko
// Licensed under MIT License
//
// See LICENSE for license information
import Foundation
/// A type that represents an entry from the container with its data and information.
public protocol ContainerEntry {
/// A type that provides information about an entry.
associatedtype Info: ContainerEntryInfo
/// Provides access to information about the entry.
var info: Info { get }
/// Entry's data (`nil` if entry is a directory or data isn't available).
var data: Data? { get }
}