copy

Deep copies any struct to its contiguous representation. Effectively does serialization and deserialization in one go.

  1. Contiguous!(S) copy(Contiguous!(S) src, Contiguous!(S) dst)
  2. Contiguous!(S) copy(S src, Contiguous!(S) dst)
    copy
    (
    S
    )
    (
    ref const S src
    ,
    ref Contiguous!(S) dst
    )

Parameters

src S

any struct instance

dst Contiguous!(S)

contiguous struct to be filled with same values as src

Return Value

Type: Contiguous!(S)

dst by value

Meta