Skip to main content

segment_of

Function segment_of 

Source
pub unsafe fn segment_of(ptr: NonNull<u8>) -> NonNull<Segment>
Expand description

Recover the segment owning ptr.

ยงSafety

ptr must be a slot address previously handed out by a segment of this allocator (that is, not from the direct-mapping path).