[−][src]Struct inkwell::values::FloatValue
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]
fn as_basic_value_enum(&self) -> BasicValueEnum
[src]
fn as_instruction_value(&self) -> Option<InstructionValue>
[src]
fn get_first_use(&self) -> Option<BasicValueUse>
[src]
impl FloatMathValue for FloatValue
[src]
type BaseType = FloatType
fn new(value: LLVMValueRef) -> Self
[src]
impl AnyValue for FloatValue
[src]
fn as_any_value_enum(&self) -> AnyValueEnum
[src]
impl Eq for FloatValue
[src]
impl Clone for FloatValue
[src]
fn clone(&self) -> FloatValue
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<FloatValue> for AnyValueEnum
[src]
fn eq(&self, other: &FloatValue) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<AnyValueEnum> for FloatValue
[src]
fn eq(&self, other: &AnyValueEnum) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<FloatValue> for BasicValueEnum
[src]
fn eq(&self, other: &FloatValue) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<BasicValueEnum> for FloatValue
[src]
fn eq(&self, other: &BasicValueEnum) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<FloatValue> for BasicMetadataValueEnum
[src]
fn eq(&self, other: &FloatValue) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<BasicMetadataValueEnum> for FloatValue
[src]
fn eq(&self, other: &BasicMetadataValueEnum) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<FloatValue> for FloatValue
[src]
fn eq(&self, other: &FloatValue) -> bool
[src]
fn ne(&self, other: &FloatValue) -> bool
[src]
impl From<FloatValue> for AnyValueEnum
[src]
fn from(value: FloatValue) -> AnyValueEnum
[src]
impl From<FloatValue> for BasicValueEnum
[src]
fn from(value: FloatValue) -> BasicValueEnum
[src]
impl From<FloatValue> for BasicMetadataValueEnum
[src]
fn from(value: FloatValue) -> BasicMetadataValueEnum
[src]
impl Copy for FloatValue
[src]
impl Hash for FloatValue
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Debug for FloatValue
[src]
impl TryFrom<BasicValueEnum> for FloatValue
[src]
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]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,