Extracts a slice containing the entire buffer. Equivalent to `&s[..]`. # Examples ``` # let _context = cust::quick_init().unwrap(); use cust::memory::*; let buffer = UnifiedBuffer::new(&0u64, 5).unwrap(); let sum : u64 = buffer.as_slice().iter().sum(); ```
(&self)
| 441 | /// let sum : u64 = buffer.as_slice().iter().sum(); |
| 442 | /// ``` |
| 443 | pub fn as_slice(&self) -> &[T] { |
| 444 | self |
| 445 | } |
| 446 | |
| 447 | /// Extracts a mutable slice of the entire buffer. |
| 448 | /// |
no test coverage detected