pub fn content_register_deserializer<T: 'static, P: Fn(&ContentDeserializer, &mut Option<T>) + 'static>(
    mime_type: &str,
    type_: Type,
    deserialize: P
)
Expand description

Registers a function to deserialize object of a given type.

§mime_type

the mime type which the function can deserialize from

§type_

the type of objects that the function creates

§deserialize

the callback

§notify

destroy notify for @data