Skip to main content

SemanticHypergraph

Struct SemanticHypergraph 

Source
pub struct SemanticHypergraph { /* private fields */ }
Expand description

Device-resident immutable-root semantic owner retaining its provider.

Implementations§

Source§

impl SemanticHypergraph

Source

pub fn admit_initial_records( self, records: SemanticAdmissionRecords, initial_supports: &[u32], limits: SemanticAdmissionLimits, ) -> Result<Self, SemanticHypergraphError>

Consumes a cold graph and imports the explicitly selected support assertions.

Each index selects an admitted support record with its declared statement link. Order and duplicate-insertion semantics are preserved; unselected events remain declarations available to future proposals, not initial truth. The assertion count is bounded by limits.max_records.

Initialization uses the existing device mutation path, then binds admission to the sealed populated root without re-resolving accepted symbol content. Errors return no partially initialized owner. This cold import does not certify external truth or provenance, or publish joint neural/text state.

Source

pub fn admit_records( &mut self, base: SemanticRootHandle, records: SemanticAdmissionRecords, limits: SemanticAdmissionLimits, ) -> Result<&SemanticAdmission, SemanticHypergraphError>

Admits and owns typed content for one exact sealed base before resident execution.

This is not an import of a separate relation store, and does not assert the external truth of provenance. Invalid input is rejected before CUDA work. The accepted snapshot cannot be replaced or mutated by the caller.

Source

pub fn admission(&self) -> Option<&SemanticAdmission>

Returns the retained cold snapshot, not a re-resolution of live inputs.

Source

pub const fn empty_root(&self) -> SemanticRootHandle

Source

pub const fn execution_stats(&self) -> SemanticHypergraphExecutionStats

Source

pub fn fork( &mut self, base: SemanticRootHandle, ) -> Result<SemanticForkHandle, SemanticHypergraphError>

Source

pub fn insert_support( &mut self, fork: SemanticForkHandle, statement: &SemanticStatementKey, event: &SemanticSupportEvent, ) -> Result<SemanticInsertOutcome, SemanticHypergraphError>

Source

pub fn discard( &mut self, fork: SemanticForkHandle, ) -> Result<(), SemanticHypergraphError>

Source

pub fn seal( &mut self, fork: SemanticForkHandle, ) -> Result<SemanticRootHandle, SemanticHypergraphError>

Source

pub fn snapshot( &mut self, view: SemanticView, ) -> Result<SemanticRootSnapshot, SemanticHypergraphError>

Source

pub fn truth( &mut self, view: SemanticView, statement: &SemanticStatementKey, ) -> Result<SemanticTruth, SemanticHypergraphError>

Source

pub fn inspect_statement( &mut self, view: SemanticView, handle: SemanticStatementHandle, ) -> Result<SemanticStatementRef, SemanticHypergraphError>

Source

pub fn inspect_support( &mut self, view: SemanticView, handle: SemanticSupportHandle, ) -> Result<SemanticSupportRef, SemanticHypergraphError>

Source

pub fn inspect_version( &mut self, view: SemanticView, handle: SemanticVersionHandle, ) -> Result<SemanticVersionRef, SemanticHypergraphError>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.