pub enum SemanticConstructKind {
Source,
Collect,
Reduce,
PropagateError,
Validate,
AcquireResource,
ReleaseResource,
}Expand description
Closed semantic constructs that compiler helpers may report.
Variants§
Source
A compiler-verified sequence consumed by a restricted explicit loop.
Collect
A compiler-verified explicit loop materialized one element per iteration.
Reduce
A compiler-verified explicit loop accumulated every sequence element.
PropagateError
Rust ? propagated an error-like value to the surrounding caller.
Validate
Rust selected a branch after checking a fallible or optional value.
AcquireResource
A compiler-confirmed standard operation acquired a tracked resource.
ReleaseResource
A lexical scope ended and released a tracked resource.
Implementations§
Trait Implementations§
Source§impl Clone for SemanticConstructKind
impl Clone for SemanticConstructKind
Source§fn clone(&self) -> SemanticConstructKind
fn clone(&self) -> SemanticConstructKind
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 moreimpl Copy for SemanticConstructKind
Source§impl Debug for SemanticConstructKind
impl Debug for SemanticConstructKind
Source§impl<'de> Deserialize<'de> for SemanticConstructKind
impl<'de> Deserialize<'de> for SemanticConstructKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SemanticConstructKind
Source§impl PartialEq for SemanticConstructKind
impl PartialEq for SemanticConstructKind
Source§impl Serialize for SemanticConstructKind
impl Serialize for SemanticConstructKind
impl StructuralPartialEq for SemanticConstructKind
Auto Trait Implementations§
impl Freeze for SemanticConstructKind
impl RefUnwindSafe for SemanticConstructKind
impl Send for SemanticConstructKind
impl Sync for SemanticConstructKind
impl Unpin for SemanticConstructKind
impl UnsafeUnpin for SemanticConstructKind
impl UnwindSafe for SemanticConstructKind
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