pub struct ProjectionSpec { /* private fields */ }Expand description
Defines which nodes and edges are included in a projection.
Implementations§
Source§impl ProjectionSpec
impl ProjectionSpec
Sourcepub fn new() -> ProjectionSpec
pub fn new() -> ProjectionSpec
Creates an empty spec (all nodes, all edges).
Sourcepub fn with_node_labels(
self,
labels: impl IntoIterator<Item = impl Into<String>>,
) -> ProjectionSpec
pub fn with_node_labels( self, labels: impl IntoIterator<Item = impl Into<String>>, ) -> ProjectionSpec
Restricts the projection to nodes with any of these labels.
Sourcepub fn with_edge_types(
self,
types: impl IntoIterator<Item = impl Into<String>>,
) -> ProjectionSpec
pub fn with_edge_types( self, types: impl IntoIterator<Item = impl Into<String>>, ) -> ProjectionSpec
Restricts the projection to edges with any of these types.
Trait Implementations§
Source§impl Clone for ProjectionSpec
impl Clone for ProjectionSpec
Source§fn clone(&self) -> ProjectionSpec
fn clone(&self) -> ProjectionSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProjectionSpec
impl Debug for ProjectionSpec
Source§impl Default for ProjectionSpec
impl Default for ProjectionSpec
Source§fn default() -> ProjectionSpec
fn default() -> ProjectionSpec
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProjectionSpec
impl RefUnwindSafe for ProjectionSpec
impl Send for ProjectionSpec
impl Sync for ProjectionSpec
impl Unpin for ProjectionSpec
impl UnsafeUnpin for ProjectionSpec
impl UnwindSafe for ProjectionSpec
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
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>
Converts
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>
Converts
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