pub struct InMemorySemanticSource { /* private fields */ }Expand description
In-memory conformance double for semantic sources.
Implementations§
Source§impl InMemorySemanticSource
impl InMemorySemanticSource
Sourcepub fn new(
descriptor: SourceDescriptor,
entities: impl IntoIterator<Item = SemanticEntity>,
) -> Result<Self, OpenBimError>
pub fn new( descriptor: SourceDescriptor, entities: impl IntoIterator<Item = SemanticEntity>, ) -> Result<Self, OpenBimError>
Builds a source after qualifying each local entity identity with its source ID.
§Errors
Returns OpenBimError::EmptyEntityId for an empty local ID or
OpenBimError::DuplicateEntityId for an ambiguous local identity.
Trait Implementations§
Source§impl Clone for InMemorySemanticSource
impl Clone for InMemorySemanticSource
Source§fn clone(&self) -> InMemorySemanticSource
fn clone(&self) -> InMemorySemanticSource
Returns a copy of the value. Read more
1.0.0 · 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 InMemorySemanticSource
impl Debug for InMemorySemanticSource
Source§impl SemanticSource for InMemorySemanticSource
impl SemanticSource for InMemorySemanticSource
Source§fn descriptor(&self) -> &SourceDescriptor
fn descriptor(&self) -> &SourceDescriptor
Describes the source and its semantic schema.
Auto Trait Implementations§
impl Freeze for InMemorySemanticSource
impl RefUnwindSafe for InMemorySemanticSource
impl Send for InMemorySemanticSource
impl Sync for InMemorySemanticSource
impl Unpin for InMemorySemanticSource
impl UnwindSafe for InMemorySemanticSource
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