You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: with_typeid.rs
    path of file: ./repos/pgrx/pgrx/src/datum
    
    the code of the file until where you have to start completion: use crate::Array;
use crate::FromDatum;
use crate::PgBox;
us
    
pub fn nonstatic_typeid<T: ?Sized>() -> core::any::TypeId {
    trait NonStaticAny {
        fn type_id(&self) -> core::any::TypeId
        where
            Self: 'static;
    }
    impl<T: ?Sized> NonStaticAny for core::marker::PhantomData<T> {
        #[inline]
        fn type_id(&self) -> core::any::TypeId
        where
            Self: 'static,
        {
            core::any::TypeId::of::<T>()
        }
    }
    let it = core::marker::PhantomData::<T>;
    // There is no excuse for the crimes we have done here, but what jury would convict us?
    unsafe { core::mem::transmute::<&dyn NonStaticAny, &'static dyn NonStaticAny>(&it).type_id() }
}