MCPcopy Create free account
hub / github.com/chc4/lineiform / operation

Function operation

tangle/src/select.rs:195–197  ·  view source on GitHub ↗
(token: &RefEquality<&NodeOwner>, n: &RefEquality<Rc<NodeCell>>, op: Operation)

Source from the content-addressed store, hash-verified

193}
194
195fn operation(token: &RefEquality<&NodeOwner>, n: &RefEquality<Rc<NodeCell>>, op: Operation) -> bool {
196 (n.0.ro(token.0).as_ref() as &dyn Any).downcast_ref::<NodeVariant::Simple>().map(|n| n.0 == op) == Some(true)
197}
198
199
200#[derive(Default)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected