pub struct ManagedSchemaScope { /* private fields */ }Expand description
Unbound evidence selecting direct fact identities observed as managed.
Selection-only evidence cannot enter persisted managed fingerprints until an owning schema derives an exclusive bound scope from all declared facts.
Implementations§
Source§impl ManagedSchemaScope
impl ManagedSchemaScope
Sourcepub fn new(facts: impl IntoIterator<Item = SchemaFactId>) -> Self
pub fn new(facts: impl IntoIterator<Item = SchemaFactId>) -> Self
Create a deterministic managed scope from direct fact identities.
Sourcepub fn bind_exclusive(
scope_id: ManagedScopeId,
declared: &DeclaredSchema,
) -> Result<BoundManagedSchemaScope, SchemaDiagnostics>
pub fn bind_exclusive( scope_id: ManagedScopeId, declared: &DeclaredSchema, ) -> Result<BoundManagedSchemaScope, SchemaDiagnostics>
Derive a complete exclusive managed scope from every direct declared fact.
Sourcepub fn contains(&self, fact: &SchemaFactId) -> bool
pub fn contains(&self, fact: &SchemaFactId) -> bool
Report whether a direct fact identity is managed.
Sourcepub fn iter(&self) -> impl ExactSizeIterator<Item = &SchemaFactId>
pub fn iter(&self) -> impl ExactSizeIterator<Item = &SchemaFactId>
Iterate managed identities in stable order.
Trait Implementations§
Source§impl Clone for ManagedSchemaScope
impl Clone for ManagedSchemaScope
Source§fn clone(&self) -> ManagedSchemaScope
fn clone(&self) -> ManagedSchemaScope
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 ManagedSchemaScope
impl Debug for ManagedSchemaScope
Source§impl Default for ManagedSchemaScope
impl Default for ManagedSchemaScope
Source§fn default() -> ManagedSchemaScope
fn default() -> ManagedSchemaScope
Returns the “default value” for a type. Read more
impl Eq for ManagedSchemaScope
Source§impl PartialEq for ManagedSchemaScope
impl PartialEq for ManagedSchemaScope
impl StructuralPartialEq for ManagedSchemaScope
Auto Trait Implementations§
impl Freeze for ManagedSchemaScope
impl RefUnwindSafe for ManagedSchemaScope
impl Send for ManagedSchemaScope
impl Sync for ManagedSchemaScope
impl Unpin for ManagedSchemaScope
impl UnsafeUnpin for ManagedSchemaScope
impl UnwindSafe for ManagedSchemaScope
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