encode

Function encode 

Source
pub fn encode(v: &Val) -> Option<Vec<u8>>
Expand description

None for anything that is not data, which is the same judgement send makes at the primitive - so a closure reaching here is a bug above.