fn segment_index(&self, address: usize) -> Option<usize> {
        for (i, segment) in self.allocations.iter().enumerate() {
            if segment.contains(address) {
                return Some(i);
            }
        }
        None
    }
/// Get the index into the allocations vector of the segment containing this pointer.
Get the index into the allocations vector of the segment containing this pointer.
Get the index into the allocations vector of the segment containing this pointer .
fn segment_index(&self, address: usize) -> Option<usize> {
        for (i, segment) in self.allocations.iter().enumerate() {
            if segment.contains(address) {
                return Some(i);
            }
        }
        None
    }
fn segment_index ( & self , address : usize ) -> Option < usize > { for ( i , segment ) in self . allocations . iter ( ) . enumerate ( ) { if segment . contains ( address ) { return Some ( i ) ; } } None }
Get the index into the allocations vector of the segment containing this pointer.
Get the index into the allocations vector of the segment containing this pointer .
&self
address
usize