pub struct Bound { /* private fields */ }Expand description
Resolved name→id handles for an applied Schema.
The single place names resolve to ids; replaces hand-threaded *Id maps.
Typed getters return Key<T>/EqualityIndex<T> (the value type is
checked against the declaration); a missing name is a [DbError::UnknownName].
§Performance
Cloning is O(handle count); every getter is O(log n + name length).
Implementations§
Source§impl Bound
impl Bound
Sourcepub fn relation_type(&self, name: &str) -> Result<RelationTypeId, DbError>
pub fn relation_type(&self, name: &str) -> Result<RelationTypeId, DbError>
Sourcepub fn equality_index<T: ValueType>(
&self,
name: &str,
) -> Result<EqualityIndex<T>, DbError>
pub fn equality_index<T: ValueType>( &self, name: &str, ) -> Result<EqualityIndex<T>, DbError>
Sourcepub fn projection(&self, name: &str) -> Result<ProjectionId, DbError>
pub fn projection(&self, name: &str) -> Result<ProjectionId, DbError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bound
impl RefUnwindSafe for Bound
impl Send for Bound
impl Sync for Bound
impl Unpin for Bound
impl UnsafeUnpin for Bound
impl UnwindSafe for Bound
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