pub struct FloatValue { /* private fields */ }
Implementations§
Source§impl FloatValue
impl FloatValue
pub fn new(reference: LLVMValueRef) -> Self
pub fn get_reference(&self) -> LLVMValueRef
pub fn is_undef(&self) -> bool
pub fn eq(&self, ctx: &Context, other: &FloatValue) -> BoolValue
pub fn add(&self, ctx: &Context, other: &FloatValue) -> FloatValue
pub fn mul(&self, ctx: &Context, other: &FloatValue) -> FloatValue
pub fn neg(&self, ctx: &Context) -> FloatValue
pub fn less_than(&self, ctx: &Context, other: &FloatValue) -> BoolValue
pub fn greater_than(&self, ctx: &Context, other: &FloatValue) -> BoolValue
pub fn to_int32(&self, ctx: &Context) -> Int32Value
pub fn to_double(&self, ctx: &Context) -> DoubleValue
Trait Implementations§
Source§impl Clone for FloatValue
impl Clone for FloatValue
Source§fn clone(&self) -> FloatValue
fn clone(&self) -> FloatValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FloatValue
impl Debug for FloatValue
Source§impl From<FloatValue> for LLVMValue
impl From<FloatValue> for LLVMValue
Source§fn from(value: FloatValue) -> Self
fn from(value: FloatValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FloatValue
impl RefUnwindSafe for FloatValue
impl !Send for FloatValue
impl !Sync for FloatValue
impl Unpin for FloatValue
impl UnwindSafe for FloatValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more