pub(crate) fn decl<S>(&mut self, name: &str, value: T, spanned: S) -> Result<(), Custom>
    where
        S: Spanned,
    {
        let last = self
            .last_mut()
            .ok_or_else(|| Custom::new(spanned, "expected at least one scope"))?;

        last.locals.insert(name.to_owned(), value);
        Ok(())
    }
/// Declare a value in the scope.
Declare a value in the scope.
Declare a value in the scope .
pub(crate) fn decl<S>(&mut self, name: &str, value: T, spanned: S) -> Result<(), Custom>
    where
        S: Spanned,
    {
        let last = self
            .last_mut()
            .ok_or_else(|| Custom::new(spanned, "expected at least one scope"))?;
        last.locals.insert(name.to_owned(), value);
        Ok(())
    }
pub ( crate ) fn decl < S > ( & mut self , name : & str , value : T , spanned : S ) -> Result < ( ) , Custom > where S : Spanned , { let last = self . last_mut ( ) . ok_or_else ( | | Custom :: new ( spanned , " " ) ) ? ; last . locals . insert ( name . to_owned ( ) , value ) ; Ok ( ( ) ) }
Declare a value in the scope.
Declare a value in the scope .
&mut self
name
&str
value
T
spanned
S
&mut self
name
&str
value
T
spanned
S