tryEncode

fun <T : Any> Encapsulator<T>.tryEncode(encoder: Encoder, value: Any): Unit?