MCPcopy
hub / github.com/tinylib/msgp / Needsinit

Method Needsinit

gen/elem.go:543–548  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

541func (s *Ptr) Complexity() int { return 1 + s.Value.Complexity() }
542
543func (s *Ptr) Needsinit() bool {
544 if be, ok := s.Value.(*BaseElem); ok && be.needsref {
545 return false
546 }
547 return true
548}
549
550// ZeroExpr returns the zero/empty expression or empty string if not supported. Always "nil" for this case.
551func (s *Ptr) ZeroExpr() string { return "nil" }

Callers 1

initPtrMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected