pub fn is_kp_value_key_prefix(prefix: &str, keypath: &str) -> bool {
        match keypath.strip_prefix(prefix) {
            Some(stripped) => match stripped.chars().next() {
                Some('.') => true,
                Some('$') => true,
                Some(_) => false,
                None => true,
            },
            None => false,
        }
    }
// Returns true if the prefix str is a prefix of the true keypath
Returns true if the prefix str is a prefix of the true keypath
Returns true if the prefix str is a prefix of the true keypath
pub fn is_kp_value_key_prefix(prefix: &str, keypath: &str) -> bool {
        match keypath.strip_prefix(prefix) {
            Some(stripped) => match stripped.chars().next() {
                Some('.') => true,
                Some('$') => true,
                Some(_) => false,
                None => true,
            },
            None => false,
        }
    }
pub fn is_kp_value_key_prefix ( prefix : & str , keypath : & str ) -> bool { match keypath . strip_prefix ( prefix ) { Some ( stripped ) => match stripped . chars ( ) . next ( ) { Some ( '.' ) => true , Some ( '$' ) => true , Some ( _ ) => false , None => true , } , None => false , } }
Returns true if the prefix str is a prefix of the true keypath
Returns true if the prefix str is a prefix of the true keypath
prefix
&str
keypath
&str
prefix
&str
keypath
&str