pub struct RangeArea<SegmentType: Segment> {
    pub start: usize,
    pub end: usize,
    pub segment: SegmentType,
}

Fields

start: usizeend: usizesegment: SegmentType

Implementations

当前区间是否包含 pos 这个点

尝试空出[start, end)区间。即删除当前区间中和[start, end)相交的部分。

注意,这个函数在内部已经 unmap 了对应的区间中的映射,调用后不需要再手动 unmap。 这个函数默认参数中的 start 和 end 是按页对齐的

尝试修改与 [start, end) 区间相交的部分的权限。 如果这一修改导致区间分裂,则分别返回分出的每个区间。

当前区间与 [start, end) 是否相交

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.