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

Method as_text

crates/gitql-core/src/values/base.rs:351–356  ·  view source on GitHub ↗

Return List of [`String`] represent the inner value of [`IntValue`] or None if this type it's called from wrong [`Value`]

(&self)

Source from the content-addressed store, hash-verified

349 /// Return List of [`String`] represent the inner value of [`IntValue`]
350 /// or None if this type it's called from wrong [`Value`]
351 pub fn as_text(&self) -> Option<String> {
352 if let Some(text_value) = self.as_any().downcast_ref::<TextValue>() {
353 return Some(text_value.value.to_string());
354 }
355 None
356 }
357
358 /// Return true if this value is [`IntValue`]
359 pub fn is_int(&self) -> bool {

Callers 15

commit_conventionalFunction · 0.80
group_eq_opMethod · 0.80
group_bang_eq_opMethod · 0.80
group_gt_opMethod · 0.80
group_gte_opMethod · 0.80
group_lt_opMethod · 0.80
group_lte_opMethod · 0.80

Calls 1

as_anyMethod · 0.45

Tested by

no test coverage detected