Skip to main content

BeginMut

Trait BeginMut 

Source
pub trait BeginMut {
    type Output;

    // Required method
    unsafe fn begin_mut(&self) -> Self::Output;
}
Expand description

Represents C++’s begin() function.

Required Associated Types§

Source

type Output

Output type.

Required Methods§

Source

unsafe fn begin_mut(&self) -> Self::Output

Returns a C++ mutable iterator object pointing to the beginning of the collection.

§Safety

The caller must make sure self contains a valid pointer. This function may invoke arbitrary foreign code, so no safety guarantees can be made.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§