pub struct SemanticOperationGraph {
pub schema_version: String,
pub language: Language,
pub build_variant_fingerprint: [u8; 32],
pub nodes: Vec<OperationNode>,
pub edges: Vec<OperationEdge>,
}Expand description
A versioned, compiler-independent restricted semantic graph.
Fields§
§schema_version: StringVocabulary and normalization contract version.
language: LanguageLanguage that supplied the compiler evidence.
build_variant_fingerprint: [u8; 32]Build variant that produced the compiler evidence.
nodes: Vec<OperationNode>Operations in deterministic source order.
edges: Vec<OperationEdge>Canonically ordered dependencies between operations.
Implementations§
Source§impl SemanticOperationGraph
impl SemanticOperationGraph
Sourcepub fn new(
language: Language,
build_variant_fingerprint: [u8; 32],
nodes: Vec<OperationNode>,
edges: Vec<OperationEdge>,
) -> Result<Self, SemanticGraphError>
pub fn new( language: Language, build_variant_fingerprint: [u8; 32], nodes: Vec<OperationNode>, edges: Vec<OperationEdge>, ) -> Result<Self, SemanticGraphError>
Construct a validated graph under the current schema version.
Edges are sorted into one canonical order. Inputs that attempt to add a generic operation, an invalid local reference, or an incoherent resource pairing are rejected rather than approximated.
§Errors
Returns SemanticGraphError when a node attribute or edge is outside
the restricted graph contract.
Trait Implementations§
Source§impl Clone for SemanticOperationGraph
impl Clone for SemanticOperationGraph
Source§fn clone(&self) -> SemanticOperationGraph
fn clone(&self) -> SemanticOperationGraph
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 SemanticOperationGraph
impl Debug for SemanticOperationGraph
Source§impl<'de> Deserialize<'de> for SemanticOperationGraph
impl<'de> Deserialize<'de> for SemanticOperationGraph
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 SemanticOperationGraph
Source§impl PartialEq for SemanticOperationGraph
impl PartialEq for SemanticOperationGraph
Source§impl Serialize for SemanticOperationGraph
impl Serialize for SemanticOperationGraph
impl StructuralPartialEq for SemanticOperationGraph
Auto Trait Implementations§
impl Freeze for SemanticOperationGraph
impl RefUnwindSafe for SemanticOperationGraph
impl Send for SemanticOperationGraph
impl Sync for SemanticOperationGraph
impl Unpin for SemanticOperationGraph
impl UnsafeUnpin for SemanticOperationGraph
impl UnwindSafe for SemanticOperationGraph
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.