pub struct IndexCastOperation<'c> { /* private fields */ }
Expand description
An index_cast
operation. Cast between index and integer types.
Casts between scalar or vector integers and corresponding ‘index’ scalar or vectors. Index is an integer of platform-specific bit width. If casting to a wider integer, the value is sign-extended. If casting to a narrower integer, the value is truncated.
Implementations§
source§impl<'c> IndexCastOperation<'c>
impl<'c> IndexCastOperation<'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>
) -> IndexCastOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> IndexCastOperationBuilder<'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<IndexCastOperation<'c>> for Operation<'c>
impl<'c> From<IndexCastOperation<'c>> for Operation<'c>
source§fn from(operation: IndexCastOperation<'c>) -> Self
fn from(operation: IndexCastOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for IndexCastOperation<'c>
impl<'c> !Send for IndexCastOperation<'c>
impl<'c> !Sync for IndexCastOperation<'c>
impl<'c> Unpin for IndexCastOperation<'c>
impl<'c> UnwindSafe for IndexCastOperation<'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