Lines Matching defs:self

101     pub fn add(self, offset: usize) -> Self {  in add()  argument
107 pub fn check_aligned(&self, align: usize) -> bool { in check_aligned()
118 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt()
127 fn add(self, rhs: usize) -> Self::Output { in add() argument
134 fn add_assign(&mut self, rhs: usize) { in add_assign()
143 fn add(self, rhs: PhysAddr) -> Self::Output { in add() argument
150 fn add_assign(&mut self, rhs: PhysAddr) { in add_assign()
159 fn sub(self, rhs: usize) -> Self::Output { in sub() argument
166 fn sub_assign(&mut self, rhs: usize) { in sub_assign()
175 fn sub(self, rhs: PhysAddr) -> Self::Output { in sub() argument
182 fn sub_assign(&mut self, rhs: PhysAddr) { in sub_assign()
216 pub fn check_aligned(&self, align: usize) -> bool { in check_aligned()
245 fn add(self, rhs: VirtAddr) -> Self::Output { in add() argument
254 fn add(self, rhs: usize) -> Self::Output { in add() argument
263 fn sub(self, rhs: VirtAddr) -> Self::Output { in sub() argument
272 fn sub(self, rhs: usize) -> Self::Output { in sub() argument
279 fn add_assign(&mut self, rhs: usize) { in add_assign()
286 fn add_assign(&mut self, rhs: VirtAddr) { in add_assign()
293 fn sub_assign(&mut self, rhs: usize) { in sub_assign()
300 fn sub_assign(&mut self, rhs: VirtAddr) { in sub_assign()
306 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt()
505 pub fn intersect(&self, other: &VirtRegion) -> Option<VirtRegion> { in intersect()
513 pub fn set_start(&mut self, start: VirtAddr) { in set_start()
524 pub fn set_size(&mut self, size: usize) { in set_size()
542 pub fn collide(&self, other: &VirtRegion) -> bool { in collide()
556 pub fn before(self, region: &VirtRegion) -> Option<Self> { in before() argument
563 pub fn after(self, region: &VirtRegion) -> Option<Self> { in after() argument
573 pub fn rebase(self, vaddr: VirtAddr, new_base: &VirtRegion) -> Option<VirtAddr> { in rebase() argument
583 pub fn contains(&self, addr: VirtAddr) -> bool { in contains()
597 fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> { in partial_cmp()
603 fn cmp(&self, other: &Self) -> cmp::Ordering { in cmp()