NodeView provides a read-only view over Node. Its methods should only be called if `Valid()` returns true.
| 116 | // |
| 117 | // Its methods should only be called if `Valid()` returns true. |
| 118 | type NodeView struct { |
| 119 | // ж is the underlying mutable value, named with a hard-to-type |
| 120 | // character that looks pointy like a pointer. |
| 121 | // It is named distinctively to make you think of how dangerous it is to escape |
| 122 | // to callers. You must not let callers be able to mutate it. |
| 123 | ж *Node |
| 124 | } |
| 125 | |
| 126 | // Valid reports whether v's underlying value is non-nil. |
| 127 | func (v NodeView) Valid() bool { return v.ж != nil } |
nothing calls this directly
no outgoing calls
no test coverage detected