pub struct CopyOperation<'c> { /* private fields */ }
Expand description
A copy
operation.
Copies the data from the source to the destination memref.
Usage:
memref.copy %arg0, %arg1 : memref<?xf32> to memref<?xf32>
Source and destination are expected to have the same element type and shape. Otherwise, the result is undefined. They may have different layouts.
Implementations§
source§impl<'c> CopyOperation<'c>
impl<'c> CopyOperation<'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>
) -> CopyOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> CopyOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn source(&self) -> Result<Value<'c, '_>, Error>
pub fn target(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<CopyOperation<'c>> for Operation<'c>
impl<'c> From<CopyOperation<'c>> for Operation<'c>
source§fn from(operation: CopyOperation<'c>) -> Self
fn from(operation: CopyOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for CopyOperation<'c>
impl<'c> !Send for CopyOperation<'c>
impl<'c> !Sync for CopyOperation<'c>
impl<'c> Unpin for CopyOperation<'c>
impl<'c> UnwindSafe for CopyOperation<'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