protocol Into<Target>Defines an ownership-transferring conversion from Self to Target.
A unique declared Into<Target> conformance may be inserted implicitly at typed arguments, annotated bindings, returns, and other adaptation sites. Synthesized reflexive conformances do not trigger conversion, and ambiguous conversion rows are rejected rather than selected by declaration order.
Methods
consuming func into() -> Target
Consumes the source so owned storage can be donated to the target when possible.
View Source
consuming func into() -> Target