[][src]Trait cpp_core::vector_ops::VectorAsMutSlice

pub trait VectorAsMutSlice {
    type Item;
    unsafe fn vector_as_mut_slice(&mut self) -> &mut [Self::Item];
}

Associated Types

type Item

Loading content...

Required methods

unsafe fn vector_as_mut_slice(&mut self) -> &mut [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> VectorAsMutSlice for V where
    V: DataMut<Output = MutPtr<T>> + Size
[src]

type Item = T

Loading content...