pub fn with_number<F, O>(&self, id: usize, with: F) -> Option<O>
    where
        F: FnOnce(&ast::Number) -> O,
    {
        let inner = self.inner.borrow();
        let s = inner.numbers.get(id)?;
        Some(with(s))
    }
/// Get the content of the number with the specified id and apply the given
/// operation over it.
Get the content of the number with the specified id and apply the given
operation over it.
Get the content of the number with the specified id and apply the given operation over it .
pub fn with_number<F, O>(&self, id: usize, with: F) -> Option<O>
    where
        F: FnOnce(&ast::Number) -> O,
    {
        let inner = self.inner.borrow();
        let s = inner.numbers.get(id)?;
        Some(with(s))
    }
pub fn with_number < F , O > ( & self , id : usize , with : F ) -> Option < O > where F : FnOnce ( & ast :: Number ) -> O , { let inner = self . inner . borrow ( ) ; let s = inner . numbers . get ( id ) ? ; Some ( with ( s ) ) }
Get the content of the number with the specified id and apply the given
operation over it.
Get the content of the number with the specified id and apply the given operation over it .
&self
id
usize
with
F
&self
id
usize
with
F