pub struct SemanticOperationView<'a> { /* private fields */ }Expand description
Allocation-free immutable view of one semantic operation.
Implementations§
Source§impl<'a> SemanticOperationView<'a>
impl<'a> SemanticOperationView<'a>
Sourcepub fn op(self) -> SemanticOpRef<'a>
pub fn op(self) -> SemanticOpRef<'a>
Borrow the semantic operation payload.
Sourcepub fn inputs(self) -> &'a [ProgramValue]
pub fn inputs(self) -> &'a [ProgramValue]
Borrow ordered SSA inputs.
Sourcepub fn outputs(self) -> &'a [ProgramValue]
pub fn outputs(self) -> &'a [ProgramValue]
Borrow ordered SSA outputs.
Sourcepub fn shape_guards(self) -> &'a [ShapeGuard]
pub fn shape_guards(self) -> &'a [ShapeGuard]
Borrow operation-local symbolic guards.
Sourcepub fn provenance(self) -> SemanticProvenanceView<'a>
pub fn provenance(self) -> SemanticProvenanceView<'a>
Return bounded diagnostic provenance without source identities.
Sourcepub fn placement(self) -> SemanticPlacementConstraint
pub fn placement(self) -> SemanticPlacementConstraint
Return the unresolved placement constraint.
Trait Implementations§
Source§impl<'a> Clone for SemanticOperationView<'a>
impl<'a> Clone for SemanticOperationView<'a>
Source§fn clone(&self) -> SemanticOperationView<'a>
fn clone(&self) -> SemanticOperationView<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SemanticOperationView<'_>
impl Debug for SemanticOperationView<'_>
impl<'a> Copy for SemanticOperationView<'a>
Auto Trait Implementations§
impl<'a> Freeze for SemanticOperationView<'a>
impl<'a> !RefUnwindSafe for SemanticOperationView<'a>
impl<'a> Send for SemanticOperationView<'a>
impl<'a> Sync for SemanticOperationView<'a>
impl<'a> Unpin for SemanticOperationView<'a>
impl<'a> UnsafeUnpin for SemanticOperationView<'a>
impl<'a> !UnwindSafe for SemanticOperationView<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more