pub struct VertexSelection<'g> { /* private fields */ }Implementations§
Source§impl<'g> VertexSelection<'g>
impl<'g> VertexSelection<'g>
pub fn vertices_ref(&self) -> Result<Vec<&Vertex>, GraphComputingError>
pub fn vertex_keys_ref(&self) -> Result<Vec<&str>, GraphComputingError>
pub fn vertex_values_ref( &self, ) -> Result<Vec<&VertexValue>, GraphComputingError>
Trait Implementations§
Source§impl<'g> AndOperator for VertexSelection<'g>
impl<'g> AndOperator for VertexSelection<'g>
Source§fn and_with_mask(
&self,
right_hand_side: &Self,
mask: &Self,
) -> Result<Self, GraphComputingError>
fn and_with_mask( &self, right_hand_side: &Self, mask: &Self, ) -> Result<Self, GraphComputingError>
The operator applies to all coordinates that the mask selects. Elements in the left-hand-side that the mask does not select remain unchanged.
type Output = VertexSelection<'g>
fn and(&self, right_hand_side: &Self) -> Result<Self, GraphComputingError>
Source§impl<'g> Clone for VertexSelection<'g>
impl<'g> Clone for VertexSelection<'g>
Source§fn clone(&self) -> VertexSelection<'g>
fn clone(&self) -> VertexSelection<'g>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'g> Debug for VertexSelection<'g>
impl<'g> Debug for VertexSelection<'g>
Source§impl<'g> EqualOperator for VertexSelection<'g>
impl<'g> EqualOperator for VertexSelection<'g>
Source§fn equal(&self, right_hand_side: &Self) -> Result<Self, GraphComputingError>
fn equal(&self, right_hand_side: &Self) -> Result<Self, GraphComputingError>
Requires conversion to a full vector, possibly causing high memory usage
Source§fn equal_with_mask(
&self,
right_hand_side: &Self,
mask: &Self,
) -> Result<Self, GraphComputingError>
fn equal_with_mask( &self, right_hand_side: &Self, mask: &Self, ) -> Result<Self, GraphComputingError>
The operator applies to all coordinates that the mask selects. Elements in the left-hand-side that the mask does not select remain unchanged. Requires conversion to a full vector, causing high memory usage. A smaller mask selecting fewer elements will reduce memory usage.
type Output = VertexSelection<'g>
Source§impl<'g> ExclusiveOrOperator for VertexSelection<'g>
impl<'g> ExclusiveOrOperator for VertexSelection<'g>
Source§fn exclusive_or_with_mask(
&self,
right_hand_side: &Self,
mask: &Self,
) -> Result<Self, GraphComputingError>
fn exclusive_or_with_mask( &self, right_hand_side: &Self, mask: &Self, ) -> Result<Self, GraphComputingError>
The operator applies to all coordinates that the mask selects. Elements in the left-hand-side that the mask does not select remain unchanged.
type Output = VertexSelection<'g>
fn exclusive_or( &self, right_hand_side: &Self, ) -> Result<Self, GraphComputingError>
Source§impl<'g> LogicalNegationOperator for VertexSelection<'g>
impl<'g> LogicalNegationOperator for VertexSelection<'g>
type Output = VertexSelection<'g>
fn not(&self) -> Result<Self, GraphComputingError>
fn not_with_mask(&self, mask: &Self) -> Result<Self, GraphComputingError>
Source§impl<'g> OrOperator for VertexSelection<'g>
impl<'g> OrOperator for VertexSelection<'g>
Source§fn or_with_mask(
&self,
right_hand_side: &Self,
mask: &Self,
) -> Result<Self, GraphComputingError>
fn or_with_mask( &self, right_hand_side: &Self, mask: &Self, ) -> Result<Self, GraphComputingError>
The operator applies to all coordinates that the mask selects. Elements in the left-hand-side that the mask does not select remain unchanged.
type Output = VertexSelection<'g>
fn or(&self, right_hand_side: &Self) -> Result<Self, GraphComputingError>
Auto Trait Implementations§
impl<'g> Freeze for VertexSelection<'g>
impl<'g> RefUnwindSafe for VertexSelection<'g>
impl<'g> Send for VertexSelection<'g>
impl<'g> Sync for VertexSelection<'g>
impl<'g> Unpin for VertexSelection<'g>
impl<'g> UnsafeUnpin for VertexSelection<'g>
impl<'g> UnwindSafe for VertexSelection<'g>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more