Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for IsPtrElem (0.28 sec)

  1. src/cmd/compile/internal/types/type.go

    // IsPtr reports whether t is a regular Go pointer type.
    // This does not include unsafe.Pointer.
    func (t *Type) IsPtr() bool {
    	return t.kind == TPTR
    }
    
    // IsPtrElem reports whether t is the element of a pointer (to t).
    func (t *Type) IsPtrElem() bool {
    	return t.cache.ptr != nil
    }
    
    // IsUnsafePtr reports whether t is an unsafe pointer.
    func (t *Type) IsUnsafePtr() bool {
    	return t.kind == TUNSAFEPTR
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
Back to top