Struct mz_prof::WeightedSymbolTrie
source · [−]pub struct WeightedSymbolTrie {
pub(crate) arena: Vec<SymbolTrieNode>,
}
Fields
arena: Vec<SymbolTrieNode>
Implementations
sourceimpl WeightedSymbolTrie
impl WeightedSymbolTrie
pub(crate) fn new() -> Self
pub fn dfs<F: FnMut(&SymbolTrieNode), G: FnMut(&SymbolTrieNode, bool)>(
&self,
pre: F,
post: G
)
pub(crate) fn dfs_inner<F: FnMut(&SymbolTrieNode), G: FnMut(&SymbolTrieNode, bool)>(
&self,
cur: usize,
pre: &mut F,
post: &mut G,
is_last: bool
)
pub(crate) fn step(&mut self, node: usize, next_name: &str) -> usize
pub(crate) fn node_mut(&mut self, idx: usize) -> &mut SymbolTrieNode
Trait Implementations
sourceimpl Serialize for WeightedSymbolTrie
impl Serialize for WeightedSymbolTrie
Auto Trait Implementations
impl RefUnwindSafe for WeightedSymbolTrie
impl Send for WeightedSymbolTrie
impl Sync for WeightedSymbolTrie
impl Unpin for WeightedSymbolTrie
impl UnwindSafe for WeightedSymbolTrie
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> FutureExt for T
impl<T> FutureExt for T
sourcefn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
sourcefn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request