MCPcopy Create free account
hub / github.com/AmrDeveloper/GQL / register_std_text_function_signatures

Function register_std_text_function_signatures

crates/gitql-std/src/text/mod.rs:50–287  ·  view source on GitHub ↗
(map: &mut HashMap<&'static str, Signature>)

Source from the content-addressed store, hash-verified

48
49#[inline(always)]
50pub fn register_std_text_function_signatures(map: &mut HashMap<&'static str, Signature>) {
51 map.insert(
52 "bin",
53 Signature {
54 parameters: vec![Box::new(IntType)],
55 return_type: Box::new(TextType),
56 },
57 );
58 map.insert(
59 "lower",
60 Signature {
61 parameters: vec![Box::new(TextType)],
62 return_type: Box::new(TextType),
63 },
64 );
65 map.insert(
66 "upper",
67 Signature {
68 parameters: vec![Box::new(TextType)],
69 return_type: Box::new(TextType),
70 },
71 );
72 map.insert(
73 "reverse",
74 Signature {
75 parameters: vec![Box::new(TextType)],
76 return_type: Box::new(TextType),
77 },
78 );
79 map.insert(
80 "replicate",
81 Signature {
82 parameters: vec![Box::new(TextType), Box::new(IntType)],
83 return_type: Box::new(TextType),
84 },
85 );
86 map.insert(
87 "space",
88 Signature {
89 parameters: vec![Box::new(IntType)],
90 return_type: Box::new(TextType),
91 },
92 );
93 map.insert(
94 "trim",
95 Signature {
96 parameters: vec![Box::new(TextType)],
97 return_type: Box::new(TextType),
98 },
99 );
100 map.insert(
101 "ltrim",
102 Signature {
103 parameters: vec![Box::new(TextType)],
104 return_type: Box::new(TextType),
105 },
106 );
107 map.insert(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…