[][src]Struct inkwell::values::FloatValue

pub struct FloatValue { /* fields omitted */ }

Methods

impl FloatValue[src]

pub fn get_name(&self) -> &CStr[src]

pub fn set_name(&self, name: &str)[src]

pub fn get_type(&self) -> FloatType[src]

pub fn is_null(&self) -> bool[src]

pub fn is_undef(&self) -> bool[src]

pub fn print_to_string(&self) -> LLVMString[src]

pub fn print_to_stderr(&self)[src]

pub fn as_instruction(&self) -> Option<InstructionValue>[src]

pub fn const_neg(&self) -> Self[src]

pub fn const_add(&self, rhs: FloatValue) -> Self[src]

pub fn const_sub(&self, rhs: FloatValue) -> Self[src]

pub fn const_mul(&self, rhs: FloatValue) -> Self[src]

pub fn const_div(&self, rhs: FloatValue) -> Self[src]

pub fn const_remainder(&self, rhs: FloatValue) -> Self[src]

pub fn const_cast(&self, float_type: FloatType) -> Self[src]

pub fn const_to_unsigned_int(&self, int_type: IntType) -> IntValue[src]

pub fn const_to_signed_int(&self, int_type: IntType) -> IntValue[src]

pub fn const_truncate(&self, float_type: FloatType) -> FloatValue[src]

pub fn const_extend(&self, float_type: FloatType) -> FloatValue[src]

pub fn has_metadata(&self) -> bool[src]

pub fn get_metadata(&self, kind_id: u32) -> Option<MetadataValue>[src]

pub fn set_metadata(&self, metadata: MetadataValue, kind_id: u32)[src]

pub fn const_compare(&self, op: FloatPredicate, rhs: FloatValue) -> IntValue[src]

pub fn is_const(&self) -> bool[src]

Determines whether or not a FloatValue is a constant.

Example

use inkwell::context::Context;

let context = Context::create();
let f64_type = context.f64_type();
let f64_val = f64_type.const_float(1.2);

assert!(f64_val.is_const());

pub fn get_constant(&self) -> Option<(f64, bool)>[src]

Obtains a constant FloatValue's value and whether or not it lost info.

Example

use inkwell::context::Context;

let context = Context::create();
let f64_type = context.f64_type();
let f64_1_2 = f64_type.const_float(1.2);

assert_eq!(f64_1_2.get_constant(), Some((1.2, false)));

pub fn replace_all_uses_with(&self, other: FloatValue)[src]

Trait Implementations

impl BasicValue for FloatValue[src]

impl FloatMathValue for FloatValue[src]

type BaseType = FloatType

impl AnyValue for FloatValue[src]

impl Eq for FloatValue[src]

impl Clone for FloatValue[src]

impl PartialEq<FloatValue> for AnyValueEnum[src]

impl PartialEq<AnyValueEnum> for FloatValue[src]

impl PartialEq<FloatValue> for BasicValueEnum[src]

impl PartialEq<BasicValueEnum> for FloatValue[src]

impl PartialEq<FloatValue> for BasicMetadataValueEnum[src]

impl PartialEq<BasicMetadataValueEnum> for FloatValue[src]

impl PartialEq<FloatValue> for FloatValue[src]

impl From<FloatValue> for AnyValueEnum[src]

impl From<FloatValue> for BasicValueEnum[src]

impl From<FloatValue> for BasicMetadataValueEnum[src]

impl Copy for FloatValue[src]

impl Hash for FloatValue[src]

impl Debug for FloatValue[src]

impl TryFrom<BasicValueEnum> for FloatValue[src]

type Error = &'static str

The type returned in the event of a conversion error.

Auto Trait Implementations

impl !Sync for FloatValue

impl !Send for FloatValue

impl Unpin for FloatValue

impl UnwindSafe for FloatValue

impl RefUnwindSafe for FloatValue

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]