pub struct FloatType(_);Expand description
A Float type.
Implementations§
Methods from Deref<Target = Type>§
sourcepub fn is_sized(&self) -> bool
pub fn is_sized(&self) -> bool
Returns true if the size of the type is known at compile-time.
This is equivalent to the type implementing Sized in Rust
sourcepub fn is_function(&self) -> bool
pub fn is_function(&self) -> bool
Returns true if this type is a function.
This is equivalent to FunctionType::is.
sourcepub fn is_struct(&self) -> bool
pub fn is_struct(&self) -> bool
Returns true if this type is a struct.
This is equivalent to StructType::is.
sourcepub fn is_pointer(&self) -> bool
pub fn is_pointer(&self) -> bool
Returns true if this type is a pointer.
This is equivalent to PointerType::is.
sourcepub fn is_integer(&self) -> bool
pub fn is_integer(&self) -> bool
Returns true if this type is an integer.
pub fn get_size(&self, target: &TargetData) -> usize
Trait Implementations§
source§impl<'a> From<&'a FloatType> for LLVMTypeRef
impl<'a> From<&'a FloatType> for LLVMTypeRef
source§fn from(ty: &'a FloatType) -> LLVMTypeRef
fn from(ty: &'a FloatType) -> LLVMTypeRef
Converts to this type from the input type.
source§impl<'a> From<&'a mut FloatType> for LLVMTypeRef
impl<'a> From<&'a mut FloatType> for LLVMTypeRef
source§fn from(ty: &'a mut FloatType) -> LLVMTypeRef
fn from(ty: &'a mut FloatType) -> LLVMTypeRef
Converts to this type from the input type.
source§impl<'a> From<*mut LLVMType> for &'a FloatType
impl<'a> From<*mut LLVMType> for &'a FloatType
source§fn from(ty: LLVMTypeRef) -> &'a FloatType
fn from(ty: LLVMTypeRef) -> &'a FloatType
Converts to this type from the input type.
source§impl<'a> From<*mut LLVMType> for &'a mut FloatType
impl<'a> From<*mut LLVMType> for &'a mut FloatType
source§fn from(ty: LLVMTypeRef) -> &'a mut FloatType
fn from(ty: LLVMTypeRef) -> &'a mut FloatType
Converts to this type from the input type.
source§impl GetContext for FloatType
impl GetContext for FloatType
source§fn get_context(&self) -> &Context
fn get_context(&self) -> &Context
Returns a reference to the context that owns this value. Read more