encode<V> static method

V encode<V>(
  1. RuleOrId instance,
  2. Encoder<V> encoder
)

Implementation

static V encode<V>(
  RuleOrId instance,
  Encoder<V> encoder,
) {
  return instance.encodeWith(encoder);
}