Function abi_stable::std_types::utypeid::new_utypeid[][src]

pub extern "C" fn new_utypeid<T>() -> UTypeId where
    T: 'static, 
Expand description

extern "C" fn version of UTypeId::new.

Example

use abi_stable::std_types::utypeid::new_utypeid;
use std::collections::HashMap;

let hashmap_id=new_utypeid::< HashMap<String,String> >();
let vec_id=new_utypeid::< Vec<String> >();
let u32_id=new_utypeid::< u32 >();

assert_eq!( hashmap_id, hashmap_id );
assert_eq!( vec_id, vec_id );
assert_eq!( u32_id, u32_id );

assert_ne!( vec_id, hashmap_id );
assert_ne!( u32_id, hashmap_id );
assert_ne!( vec_id, u32_id );