pub struct ResolvedScalarFunction { /* private fields */ }Expand description
One scalar implementation and the immutable metadata selected for a call.
Keeping these values together prevents execution paths from resolving the function, schema-safety policy, query-constancy policy, and argument-collation contract through separate registry probes that could disagree or repeat canonicalization.
Implementations§
Source§impl ResolvedScalarFunction
impl ResolvedScalarFunction
Sourcepub fn function(&self) -> Arc<dyn ScalarFunction> ⓘ
pub fn function(&self) -> Arc<dyn ScalarFunction> ⓘ
Clone the selected function object for invocation outside a registry borrow or lock.
Sourcepub const fn schema_safety(&self) -> ScalarSchemaSafety
pub const fn schema_safety(&self) -> ScalarSchemaSafety
Frozen schema-safety policy belonging to the selected registration.
Sourcepub const fn query_constancy(&self) -> ScalarQueryConstancy
pub const fn query_constancy(&self) -> ScalarQueryConstancy
Frozen query-constancy policy belonging to the selected registration.
Sourcepub const fn consumes_argument_collation(&self) -> bool
pub const fn consumes_argument_collation(&self) -> bool
Frozen argument-collation contract belonging to the selected entry.
Trait Implementations§
Source§impl Clone for ResolvedScalarFunction
impl Clone for ResolvedScalarFunction
Source§fn clone(&self) -> ResolvedScalarFunction
fn clone(&self) -> ResolvedScalarFunction
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 !RefUnwindSafe for ResolvedScalarFunction
impl !UnwindSafe for ResolvedScalarFunction
impl Freeze for ResolvedScalarFunction
impl Send for ResolvedScalarFunction
impl Sync for ResolvedScalarFunction
impl Unpin for ResolvedScalarFunction
impl UnsafeUnpin for ResolvedScalarFunction
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