pub struct CstrEqOperation<'c> { /* private fields */ }
Expand description
A cstr_eq
operation. Determines if all input shapes are equal.
Given 1 or more input shapes, determine if all shapes are the exact same.
“cstr” operations represent runtime assertions.
Example:
%w0 = shape.cstr_eq [1,2], [1,2], [1,2] // Passing
%w1 = shape.cstr_eq [2,2], [1,2] // Failure
Implementations§
source§impl<'c> CstrEqOperation<'c>
impl<'c> CstrEqOperation<'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>
) -> CstrEqOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> CstrEqOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn result(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn shapes(&self) -> impl Iterator<Item = Value<'c, '_>>
Trait Implementations§
source§impl<'c> From<CstrEqOperation<'c>> for Operation<'c>
impl<'c> From<CstrEqOperation<'c>> for Operation<'c>
source§fn from(operation: CstrEqOperation<'c>) -> Self
fn from(operation: CstrEqOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for CstrEqOperation<'c>
impl<'c> !Send for CstrEqOperation<'c>
impl<'c> !Sync for CstrEqOperation<'c>
impl<'c> Unpin for CstrEqOperation<'c>
impl<'c> UnwindSafe for CstrEqOperation<'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