Skip to content

Commit 6e3f4b3

Browse files
authored
Merge pull request #11 from julienvanderheyden/main
Adding support remaking CompiledCoord
2 parents 651d894 + 7890233 commit 6e3f4b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/coordinates/coordinates.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ Base.eltype(c::CoordinateData) = eltype(typeof(c))
1414
cache_size(c::CoordinateData) = cache_size(typeof(c))
1515
remaker_of(c::CoordinateData) = parameterless_type(c)
1616

17-
struct CompiledCoord{C<:CoordinateData}
17+
@kwdef struct CompiledCoord{C<:CoordinateData}
1818
coord_data::C
1919
cache_idxs::UnitRange{Int}
2020
end
2121

22+
remaker_of(c::CompiledCoord) = parameterless_type(c)
23+
2224
Base.show(io::IO, ::Type{<:CompiledCoord{C}}) where C = print(io, "CompiledCoord{$C}")
2325

2426
"""

0 commit comments

Comments
 (0)