Struct

std::borrow::NoCap

source

Re-exported from core::borrow::NoCap.

exposed struct NoCap {}

The "no capability needed" marker for Borrow's Cap slot. An instance's target must be a named or primitive type, so the empty tuple () cannot fill that slot; a zero-field struct can. Copy, with no fields, so threading it through borrow costs nothing at runtime.