INNER CODE UNIT · Rust
input_exhausted
apollographql/apollo-rs · crates/apollo-smith/src/lib.rs:389
pub fn input_exhausted(&self) -> bool {
self.u.is_empty()
}
pub(crate) fn stack_ty(&mut self, ty: &Ty) -> bool {
if ty.is_builtin() {
return false;
}
let type_name = ty.name();
if let Some(object_ty) = self
.object_type_defs
.iter()
.find(|object_ty_def| &object_ty_def.name == type_name)
.cloned()
{
self.stack.push(Box::new(object_ty));
true