pub enum GraphClass<Extra> {
GNode,
GRelationship,
GAnnotation,
GWalk,
GOther(Extra),
}Expand description
The five structural categories a pattern can belong to.
Variants§
Implementations§
Source§impl<Extra> GraphClass<Extra>
impl<Extra> GraphClass<Extra>
Sourcepub fn map_other<F, B>(self, f: F) -> GraphClass<B>where
F: FnOnce(Extra) -> B,
pub fn map_other<F, B>(self, f: F) -> GraphClass<B>where
F: FnOnce(Extra) -> B,
Maps a function over the Extra payload of GOther, leaving other variants unchanged.
Trait Implementations§
Source§impl<Extra: Clone> Clone for GraphClass<Extra>
impl<Extra: Clone> Clone for GraphClass<Extra>
Source§fn clone(&self) -> GraphClass<Extra>
fn clone(&self) -> GraphClass<Extra>
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<Extra: Debug> Debug for GraphClass<Extra>
impl<Extra: Debug> Debug for GraphClass<Extra>
Source§impl<Extra: PartialEq> PartialEq for GraphClass<Extra>
impl<Extra: PartialEq> PartialEq for GraphClass<Extra>
impl<Extra: Eq> Eq for GraphClass<Extra>
impl<Extra> StructuralPartialEq for GraphClass<Extra>
Auto Trait Implementations§
impl<Extra> Freeze for GraphClass<Extra>where
Extra: Freeze,
impl<Extra> RefUnwindSafe for GraphClass<Extra>where
Extra: RefUnwindSafe,
impl<Extra> Send for GraphClass<Extra>where
Extra: Send,
impl<Extra> Sync for GraphClass<Extra>where
Extra: Sync,
impl<Extra> Unpin for GraphClass<Extra>where
Extra: Unpin,
impl<Extra> UnsafeUnpin for GraphClass<Extra>where
Extra: UnsafeUnpin,
impl<Extra> UnwindSafe for GraphClass<Extra>where
Extra: 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