pub struct RepositorySnapshot { /* private fields */ }Expand description
A complete, immutable, structurally valid view of a knowledge-base repository.
Resources are indexed by identifiers and iterate in identifier order.
Implementations§
Source§impl RepositorySnapshot
impl RepositorySnapshot
Sourcepub fn load(root: impl AsRef<Path>) -> Result<RepositorySnapshot, Error>
pub fn load(root: impl AsRef<Path>) -> Result<RepositorySnapshot, Error>
Loads all managed structured resources from root.
pub fn entities(&self) -> &BTreeMap<EntityId, Entity>
pub fn entity_types(&self) -> &BTreeMap<EntityTypeId, EntityType>
pub fn properties(&self) -> &BTreeMap<PropertyId, Property>
pub fn references(&self) -> &BTreeMap<ReferenceId, Reference>
pub fn allocation(&self) -> &IdAllocation
Trait Implementations§
Source§impl Clone for RepositorySnapshot
impl Clone for RepositorySnapshot
Source§fn clone(&self) -> RepositorySnapshot
fn clone(&self) -> RepositorySnapshot
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 moreAuto Trait Implementations§
impl Freeze for RepositorySnapshot
impl RefUnwindSafe for RepositorySnapshot
impl Send for RepositorySnapshot
impl Sync for RepositorySnapshot
impl Unpin for RepositorySnapshot
impl UnsafeUnpin for RepositorySnapshot
impl UnwindSafe for RepositorySnapshot
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