pub fn find_all_identifiers(&self, name: &str) -> Result<Vec<Token<String>>> {
        let mut out: Vec<Token<String>> = Vec::new();

        for s in self.lookup(name) {
            match **s {
                Value::Identifier(ref identifier) => {
                    out.push(Token::new(identifier.clone(), s.pos.clone()));
                }
                _ => {
                    return Err(Error::pos(format!("{}: expected identifier", name), s.pos.clone()));
                }
            }
        }

        Ok(out)
    }
/// Find all identifiers matching the given name.
///
/// This enforces that all found values are identifiers, otherwise the lookup will cause an error.
Find all identifiers matching the given name.
This enforces that all found values are identifiers, otherwise the lookup will cause an error.
Find all identifiers matching the given name . This enforces that all found values are identifiers otherwise the lookup will cause an error .
pub fn find_all_identifiers(&self, name: &str) -> Result<Vec<Token<String>>> {
        let mut out: Vec<Token<String>> = Vec::new();
        for s in self.lookup(name) {
            match **s {
                Value::Identifier(ref identifier) => {
                    out.push(Token::new(identifier.clone(), s.pos.clone()));
                }
                _ => {
                    return Err(Error::pos(format!("{}: expected identifier", name), s.pos.clone()));
                }
            }
        }
        Ok(out)
    }
pub fn find_all_identifiers ( & self , name : & str ) -> Result < Vec < Token < String > > > { let mut out : Vec < Token < String > > = Vec :: new ( ) ; for s in self . lookup ( name ) { match * * s { Value :: Identifier ( ref identifier ) => { out . push ( Token :: new ( identifier . clone ( ) , s . pos . clone ( ) ) ) ; } _ => { return Err ( Error :: pos ( format ! ( " " name ) , s . pos . clone ( ) ) ) ; } } } Ok ( out ) }
Find all identifiers matching the given name.
Find all identifiers matching the given name .
&self
name
&str
&self
name
&str