pub struct View<'a, V> { /* private fields */ }Expand description
A read-only view of a Rust slice as an igraph vector, without copying.
It dereferences to the underlying C vector type (e.g. Vector), so
&*view can be passed where igraph expects a const igraph_vector_t *.
The view never frees the borrowed memory.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, V> Freeze for View<'a, V>where
V: Freeze,
impl<'a, V> RefUnwindSafe for View<'a, V>where
V: RefUnwindSafe,
impl<'a, V> Send for View<'a, V>where
V: Send,
impl<'a, V> Sync for View<'a, V>where
V: Sync,
impl<'a, V> Unpin for View<'a, V>where
V: Unpin,
impl<'a, V> UnsafeUnpin for View<'a, V>where
V: UnsafeUnpin,
impl<'a, V> UnwindSafe for View<'a, V>where
V: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more