pub fn content_register_serializer<T: 'static, P: Fn(&ContentSerializer, &mut Option<T>) + 'static>(
    type_: Type,
    mime_type: &str,
    serialize: P
)
Expand description

Registers a function to serialize objects of a given type.

§type_

the type of objects that the function can serialize

§mime_type

the mime type to serialize to

§serialize

the callback

§notify

destroy notify for @data