Trait IntoPtrSlice
pub trait IntoPtrSlice<T>where
T: TransparentPtrType,{
// Required method
fn run_with_ptr_slice<R, F>(self, f: F) -> R
where F: FnOnce(&[<T as GlibPtrDefault>::GlibType]) -> R;
}Expand description
A trait to accept both &[T] or PtrSlice<T> as an argument.
Required Methods§
fn run_with_ptr_slice<R, F>(self, f: F) -> R
fn run_with_ptr_slice<R, F>(self, f: F) -> R
Runs the given closure with a NULL-terminated array.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.