pub struct SIToFPOperation<'c> { /* private fields */ }
Expand description
A sitofp
operation. Cast from integer type to floating-point.
Cast from a value interpreted as a signed integer to the corresponding floating-point value. If the value cannot be exactly represented, it is rounded using the default rounding mode. When operating on vectors, casts elementwise.
Implementations§
source§impl<'c> SIToFPOperation<'c>
impl<'c> SIToFPOperation<'c>
sourcepub fn as_operation(&self) -> &Operation<'c>
pub fn as_operation(&self) -> &Operation<'c>
Returns a generic operation.
sourcepub fn builder(
context: &'c Context,
location: Location<'c>
) -> SIToFPOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> SIToFPOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn out(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn in(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<SIToFPOperation<'c>> for Operation<'c>
impl<'c> From<SIToFPOperation<'c>> for Operation<'c>
source§fn from(operation: SIToFPOperation<'c>) -> Self
fn from(operation: SIToFPOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for SIToFPOperation<'c>
impl<'c> !Send for SIToFPOperation<'c>
impl<'c> !Sync for SIToFPOperation<'c>
impl<'c> Unpin for SIToFPOperation<'c>
impl<'c> UnwindSafe for SIToFPOperation<'c>
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