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

Method new

src/strings/tst.rs:248–255  ·  view source on GitHub ↗
(c: usize)

Source from the content-addressed store, hash-verified

246
247impl<T> Node<T> {
248 fn new(c: usize) -> NonNull<Self> {
249 let v = Box::new(Self {
250 c,
251 subtries: [None; 3],
252 val: None,
253 });
254 Box::leak(v).into()
255 }
256
257 // test subtrie whether completely empty
258 fn is_empty(&self) -> bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected