Lines Matching full:acquire
12 /// Clients acquire and release IDs from unset bits in a bitmap.
31 /// assert_eq!(i, pool.find_unused_id(i).ok_or(ENOSPC)?.acquire());
35 /// assert_eq!(23, pool.find_unused_id(0).ok_or(ENOSPC)?.acquire());
41 /// assert_eq!(pool.find_unused_id(0).ok_or(ENOSPC)?.acquire(), 64);
56 /// Some(index) => return Ok(index.acquire()),
259 /// [`acquire`] method must be called to prevent others from taking the id.
261 /// [`acquire`]: UnusedId::acquire()
271 /// [`acquire`] method must be called to prevent others from taking the id.
273 /// [`acquire`]: UnusedId::acquire()
282 /// Acquire the unused id.
284 pub fn acquire(self) -> usize { in acquire() method