pub fn register_view_type<S, T, F>(
    name: S,
    long_name: S,
    constructor: F
) -> &'static Twhere
    S: BnStrCompatible,
    T: CustomBinaryViewType,
    F: FnOnce(BinaryViewType) -> T,
Expand description

Registers a custom BinaryViewType with the core.

The constructor argument is called immediately after successful registration of the type with the core. The BinaryViewType argument passed to constructor is the object that the AsRef<BinaryViewType> implementation of the CustomBinaryViewType must return.