pub enum AttrStmt<A> {
Graph(A),
Node(A),
Edge(A),
}Expand description
An AttrStmt, i.e. a statement that applies to either the whole graph, all
edges, or all nodes. Note that, in a canonical graph, AttrStmts contain a
single statement.
Variants§
Graph(A)
An AttrStmt that applies to the whole graph.
Node(A)
An AttrStmt that applies to all nodes of the graph.
Edge(A)
An AttrStmt that applies to all edges of the graph.
Trait Implementations§
impl<A: Copy> Copy for AttrStmt<A>
Auto Trait Implementations§
impl<A> Freeze for AttrStmt<A>where
A: Freeze,
impl<A> RefUnwindSafe for AttrStmt<A>where
A: RefUnwindSafe,
impl<A> Send for AttrStmt<A>where
A: Send,
impl<A> Sync for AttrStmt<A>where
A: Sync,
impl<A> Unpin for AttrStmt<A>where
A: Unpin,
impl<A> UnwindSafe for AttrStmt<A>where
A: 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
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