MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / prefers_self

Method prefers_self

src/sql/src/func.rs:793–799  ·  view source on GitHub ↗

Is `self` the preferred parameter type for its `TypeCategory`?

(&self)

Source from the content-addressed store, hash-verified

791
792 /// Is `self` the preferred parameter type for its `TypeCategory`?
793 fn prefers_self(&self) -> bool {
794 if let Some(pt) = TypeCategory::from_param(self).preferred_type() {
795 *self == pt
796 } else {
797 false
798 }
799 }
800
801 fn is_polymorphic(&self) -> bool {
802 use ParamType::*;

Callers 1

find_matchFunction · 0.80

Calls 1

preferred_typeMethod · 0.80

Tested by

no test coverage detected