fn extract_key(&mut self, stack_element: Option<StackElement>) -> ObjectKeyTypes {
        match stack_element {
            Some(StackElement::Key(key)) => {
                if self.kb.kp_segments_len() == 1 && key == "_id" {
                    ObjectKeyTypes::Id
                } else {
                    ObjectKeyTypes::Key(key.to_string())
                }
            }
            _ => ObjectKeyTypes::NoKey,
        }
    }
// Extract key if it exists and indicates if it's a special type of key
// It is called when the value is a primitive type. If it is an array or object, then
// `maybe_push_key` is called.
Extract key if it exists and indicates if it's a special type of key
It is called when the value is a primitive type. If it is an array or object, then
`maybe_push_key` is called.
Extract key if it exists and indicates if it ' s a special type of key It is called when the value is a primitive type . If it is an array or object then ` maybe_push_key ` is called .
fn extract_key(&mut self, stack_element: Option<StackElement>) -> ObjectKeyTypes {
        match stack_element {
            Some(StackElement::Key(key)) => {
                if self.kb.kp_segments_len() == 1 && key == "_id" {
                    ObjectKeyTypes::Id
                } else {
                    ObjectKeyTypes::Key(key.to_string())
                }
            }
            _ => ObjectKeyTypes::NoKey,
        }
    }
fn extract_key ( & mut self , stack_element : Option < StackElement > ) -> ObjectKeyTypes { match stack_element { Some ( StackElement :: Key ( key ) ) => { if self . kb . kp_segments_len ( ) == 1 && key == " " { ObjectKeyTypes :: Id } else { ObjectKeyTypes :: Key ( key . to_string ( ) ) } } _ => ObjectKeyTypes :: NoKey , } }
Extract key if it exists and indicates if it's a special type of key
It is called when the value is a primitive type.
Extract key if it exists and indicates if it ' s a special type of key It is called when the value is a primitive type .
&mut self
stack_element
Option<StackElement>
&mut self
stack_element
Option<StackElement>