pub struct RawVs { /* private fields */ }Expand description
A raw igraph_vs_t together with the storage it points to.
Created by VertexSelector::to_raw; call RawVs::get to obtain the
igraph_vs_t to pass by value to igraph functions. The storage stays
alive as long as this value does.
Implementations§
Source§impl RawVs
impl RawVs
Sourcepub fn get(&self) -> igraph_vs_t
pub fn get(&self) -> igraph_vs_t
A bitwise copy of the selector, to be passed by value to igraph.
Selectors built here never own heap memory, so copies are harmless.
Sourcepub fn as_ptr(&self) -> *const igraph_vs_t
pub fn as_ptr(&self) -> *const igraph_vs_t
Pointer to the selector, for functions taking const igraph_vs_t *.
Sourcepub fn is_all(&self) -> bool
pub fn is_all(&self) -> bool
Whether the selector denotes all vertices
(igraph_vs_is_all).
Sourcepub fn raw_type(&self) -> igraph_vs_type_t
pub fn raw_type(&self) -> igraph_vs_type_t
The raw selector type (igraph_vs_type), e.g. IGRAPH_VS_ALL.
Auto Trait Implementations§
impl !Send for RawVs
impl !Sync for RawVs
impl Freeze for RawVs
impl RefUnwindSafe for RawVs
impl Unpin for RawVs
impl UnsafeUnpin for RawVs
impl UnwindSafe for RawVs
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