Returns `true` if the slice has a length of 0. # Examples ``` # let _context = cust::quick_init().unwrap(); use cust::memory::*; let a : DeviceBuffer = unsafe { DeviceBuffer::uninitialized(0).unwrap() }; assert!(a.is_empty()); ```
(&self)
| 60 | /// assert!(a.is_empty()); |
| 61 | /// ``` |
| 62 | pub fn is_empty(&self) -> bool { |
| 63 | self.len == 0 |
| 64 | } |
| 65 | |
| 66 | /// Return a raw device-pointer to the slice's buffer. |
| 67 | /// |
no outgoing calls
no test coverage detected