Skip to main content

MatchedRoutineSignature

Struct MatchedRoutineSignature 

Source
pub struct MatchedRoutineSignature {
Show 16 fields pub declared_identity: Vec<String>, pub argument_signature: Vec<String>, pub default_error: Option<RoutineSignatureMatchError>, pub argument_targets: Vec<String>, pub argument_sources: Vec<Option<String>>, pub argument_positions: Vec<usize>, pub coercion_targets: Vec<RoutineCoercionTarget>, pub parameter_types: Vec<String>, pub parameter_type_values: Vec<Option<ColumnType>>, pub defaulted_parameters: Vec<usize>, pub variadic_mode: RoutineVariadicMode, pub variadic_plan: RoutineVariadicPlan, pub substitutions: RoutineTypeSubstitutions, pub raw_exact_matches: usize, pub exact_matches: usize, pub preferred_matches: usize,
}
Expand description

A fully matched call signature. Declared identity is kept separate from expansion-aware call binding.

Fields§

§declared_identity: Vec<String>§argument_signature: Vec<String>

Declared types of supplied arguments, used for ranking before defaults are inserted.

§default_error: Option<RoutineSignatureMatchError>

Candidate-only failure reported after overload selection; never publish its coercion plan.

§argument_targets: Vec<String>

Effective target signature, one entry per supplied argument.

§argument_sources: Vec<Option<String>>§argument_positions: Vec<usize>

Supplied-argument to declared-parameter mapping; an expanded variadic position may occur repeatedly.

§coercion_targets: Vec<RoutineCoercionTarget>§parameter_types: Vec<String>

Concrete parameter types aligned with the declared parameter vector.

§parameter_type_values: Vec<Option<ColumnType>>§defaulted_parameters: Vec<usize>§variadic_mode: RoutineVariadicMode§variadic_plan: RoutineVariadicPlan§substitutions: RoutineTypeSubstitutions§raw_exact_matches: usize§exact_matches: usize§preferred_matches: usize

Implementations§

Source§

impl MatchedRoutineSignature

Source

pub fn substitute_type(&self, declared_type_name: &str) -> Option<ColumnType>

Resolve a declared return or output type through this call’s polymorphic substitutions.

Source

pub fn substitute_type_name(&self, declared_type_name: &str) -> Option<String>

Resolve a declared return or output type to its canonical binding name even when no ColumnType carrier exists for a named catalog type.

Source

pub fn effective_argument_signature(&self) -> &[String]

Source

pub fn invocation_binding( &self, declared_return_type: Option<&str>, ) -> RoutineInvocationBinding

Materialize the stable AST binding contract consumed by scalar, FROM, CALL, and PL/pgSQL execution paths.

Trait Implementations§

Source§

impl Clone for MatchedRoutineSignature

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MatchedRoutineSignature

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for MatchedRoutineSignature

Source§

impl PartialEq for MatchedRoutineSignature

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for MatchedRoutineSignature

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.