pub trait AsPtr<T> {
// Required methods
fn as_ptr(&self) -> *const T;
fn len(&self) -> usize;
// Provided method
fn is_empty(&self) -> bool { ... }
}
Expand description
A buffer that can be turned into a raw ptr and has a len.
Is used to be generic over Vec