pub struct TypeqlDeclaredSchema { /* private fields */ }Expand description
A declared schema plus references derived from each TypeQL function body.
The reference index is adapter metadata. It is deliberately excluded from declared-schema canonical bytes and fingerprints.
Implementations§
Source§impl TypeqlDeclaredSchema
impl TypeqlDeclaredSchema
Sourcepub const fn declared(&self) -> &DeclaredSchema
pub const fn declared(&self) -> &DeclaredSchema
Borrow the canonical declared-schema projection.
Sourcepub fn into_declared(self) -> DeclaredSchema
pub fn into_declared(self) -> DeclaredSchema
Consume the adapter result and return its canonical declared schema.
Sourcepub const fn function_body_references(
&self,
) -> &BTreeMap<FunctionId, FunctionBodyReferences>
pub const fn function_body_references( &self, ) -> &BTreeMap<FunctionId, FunctionBodyReferences>
Borrow references indexed by the function that contains them.
Trait Implementations§
Source§impl Clone for TypeqlDeclaredSchema
impl Clone for TypeqlDeclaredSchema
Source§fn clone(&self) -> TypeqlDeclaredSchema
fn clone(&self) -> TypeqlDeclaredSchema
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 TypeqlDeclaredSchema
impl Debug for TypeqlDeclaredSchema
impl Eq for TypeqlDeclaredSchema
Source§impl PartialEq for TypeqlDeclaredSchema
impl PartialEq for TypeqlDeclaredSchema
impl StructuralPartialEq for TypeqlDeclaredSchema
Auto Trait Implementations§
impl Freeze for TypeqlDeclaredSchema
impl RefUnwindSafe for TypeqlDeclaredSchema
impl Send for TypeqlDeclaredSchema
impl Sync for TypeqlDeclaredSchema
impl Unpin for TypeqlDeclaredSchema
impl UnsafeUnpin for TypeqlDeclaredSchema
impl UnwindSafe for TypeqlDeclaredSchema
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more