fn with_data<T, F>(&mut self, f: F) -> Option<T>
    where
        F: FnOnce(&mut SpanData) -> T,
    {
        self.data.as_mut().map(f)
    }
/// Operate on a mutable reference to span data
Operate on a mutable reference to span data
Operate on a mutable reference to span data
fn with_data<T, F>(&mut self, f: F) -> Option<T>
    where
        F: FnOnce(&mut SpanData) -> T,
    {
        self.data.as_mut().map(f)
    }
fn with_data < T , F > ( & mut self , f : F ) -> Option < T > where F : FnOnce ( & mut SpanData ) -> T , { self . data . as_mut ( ) . map ( f ) }
Operate on a mutable reference to span data
Operate on a mutable reference to span data
&mut self
f
F
&mut self
f
F