MCPcopy Create free account
hub / github.com/douchuan/algorithm / new

Method new

src/strings/tries.rs:287–293  ·  view source on GitHub ↗
(val: Option<T>)

Source from the content-addressed store, hash-verified

285
286impl<T> Node<T> {
287 fn new(val: Option<T>) -> NonNull<Self> {
288 let v = Box::new(Self {
289 val,
290 next: vec![None; R],
291 });
292 Box::leak(v).into()
293 }
294}
295
296impl<T> Drop for TrieST<T> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected