[][src]Trait cpp_core::vector_ops::VectorAsSlice

pub trait VectorAsSlice {
    type Item;
    unsafe fn vector_as_slice(&self) -> &[Self::Item];
}

Associated Types

type Item

Loading content...

Required methods

unsafe fn vector_as_slice(&self) -> &[Self::Item]

Returns the content of the vector as a slice.

Safety

The caller must make sure self contains a valid pointer. The content must not be read or modified through other ways while the returned slice exists. This function may invoke arbitrary foreign code, so no safety guarantees can be made.

Loading content...

Implementors

impl<V, T> VectorAsSlice for V where
    V: Data<Output = Ptr<T>> + Size
[src]

type Item = T

Loading content...