Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use llvm_sys::prelude::LLVMTypeRef;
use std::marker::PhantomData;

use crate::{FromLLVMType, TypeRef};

/// A placeholder type; used when the type is not supported yet
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub struct GenericType<'ctx>(LLVMTypeRef, PhantomData<&'ctx ()>);

impl_send_sync!(GenericType);

impl_positional_type_ref!(GenericType, 0);

impl_positional_from_llvm_type!(GenericType);