Trait glib::collections::ptr_slice::IntoPtrSlice
source · pub trait IntoPtrSlice<T: TransparentPtrType> {
// Required method
fn run_with_ptr_slice<R, F: FnOnce(&[<T as GlibPtrDefault>::GlibType]) -> R>(
self,
f: F
) -> R;
}Expand description
A trait to accept both &[T] or PtrSlice<T> as an argument.
Required Methods§
sourcefn run_with_ptr_slice<R, F: FnOnce(&[<T as GlibPtrDefault>::GlibType]) -> R>(
self,
f: F
) -> R
fn run_with_ptr_slice<R, F: FnOnce(&[<T as GlibPtrDefault>::GlibType]) -> R>( self, f: F ) -> R
Runs the given closure with a NULL-terminated array.
Object Safety§
This trait is not object safe.