pub struct TruncFOperation<'c> { /* private fields */ }
Expand description
A truncf
operation. Cast from floating-point to narrower floating-point.
Truncate a floating-point value to a smaller floating-point-typed value. The destination type must be strictly narrower than the source type. 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> TruncFOperation<'c>
impl<'c> TruncFOperation<'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>
) -> TruncFOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> TruncFOperationBuilder<'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<TruncFOperation<'c>> for Operation<'c>
impl<'c> From<TruncFOperation<'c>> for Operation<'c>
source§fn from(operation: TruncFOperation<'c>) -> Self
fn from(operation: TruncFOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for TruncFOperation<'c>
impl<'c> !Send for TruncFOperation<'c>
impl<'c> !Sync for TruncFOperation<'c>
impl<'c> Unpin for TruncFOperation<'c>
impl<'c> UnwindSafe for TruncFOperation<'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