struct SinkOf<T> A type-erased sink. Forwards operations to an arbitrary underlying sink with the same Element type, hiding the specifics of the underlying sink type. Inheritance SinkType View Protocol Hierarchy → Import import Swift Initializers init(_: (T) -> ()) Construct an instance whose put(x) calls putElement(x) Declaration init(_ putElement: (T) -> ()) init<S : SinkType where T == T>(_: S) Construct an instance whose put(x) calls base.put(x) Declaration init<S : SinkType where T == T>(_ base: S) Instance Methods func put(_:) Write x to this sink. Declaration func put(x: T)