pub struct SemanticConstruct {
pub anchor: Anchor,
pub kind: SemanticConstructKind,
pub fallible_kind: Option<FallibleKind>,
pub direct_propagation: Option<DirectPropagation>,
pub resource_kind: Option<String>,
}Expand description
One compiler-confirmed construct that a restricted semantic rule may normalize without reconstructing syntax in the analysis process.
Fields§
§anchor: AnchorWhere the construct occurs, preserving macro expansion provenance.
kind: SemanticConstructKindThe closed meaning the helper established for this construct.
fallible_kind: Option<FallibleKind>The standard fallible container the compiler resolved, when this construct operates on one.
None when the construct does not operate on a fallible container.
direct_propagation: Option<DirectPropagation>A closed form that makes this propagation directly comparable to a different spelling without general equivalence reasoning.
resource_kind: Option<String>Closed resource category for a compiler-confirmed acquire or release. It is absent for every other construct.
Trait Implementations§
Source§impl Clone for SemanticConstruct
impl Clone for SemanticConstruct
Source§fn clone(&self) -> SemanticConstruct
fn clone(&self) -> SemanticConstruct
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 SemanticConstruct
impl Debug for SemanticConstruct
Source§impl<'de> Deserialize<'de> for SemanticConstruct
impl<'de> Deserialize<'de> for SemanticConstruct
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 SemanticConstruct
Source§impl PartialEq for SemanticConstruct
impl PartialEq for SemanticConstruct
Source§impl Serialize for SemanticConstruct
impl Serialize for SemanticConstruct
impl StructuralPartialEq for SemanticConstruct
Auto Trait Implementations§
impl Freeze for SemanticConstruct
impl RefUnwindSafe for SemanticConstruct
impl Send for SemanticConstruct
impl Sync for SemanticConstruct
impl Unpin for SemanticConstruct
impl UnsafeUnpin for SemanticConstruct
impl UnwindSafe for SemanticConstruct
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