This would make it easier to build more generic wrappers around this API without too much copy/paste for each particular type.
Note 1: would be nice to have it just as Scalar without it being generic, but it seems that Scalar<Self::ValueType> is inevitable? (because JsonValueTrait may return non-self in get() and pointer()?)
Note 2: for consistency, it might make sense to also have
Suggestion:
This would make it easier to build more generic wrappers around this API without too much copy/paste for each particular type.
Note 1: would be nice to have it just as
Scalar
without it being generic, but it seems thatScalar<Self::ValueType>
is inevitable? (becauseJsonValueTrait
may return non-self inget()
andpointer()
?)Note 2: for consistency, it might make sense to also have