[−][src]Trait cpp_core::vector_ops::VectorAsSlice
Associated Types
type Item
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.
Implementors
impl<V, T> VectorAsSlice for V where
V: Data<Output = Ptr<T>> + Size,
[src]
V: Data<Output = Ptr<T>> + Size,