pub enum GraphTypeElementRef {
Any,
AliasRef(SmallName),
InSitu {
alias: Option<SmallName>,
label: SmallName,
implies: bool,
},
}Expand description
A <node type reference> / <edge type reference> (CIP-178): how a
node/edge type spec’s endpoint, or a constraint specification’s FOR
target, names the element type it applies to.
Variants§
Any
() – the any node/edge type.
AliasRef(SmallName)
(alias) / ()-[alias]->() – resolves to a previously declared
node/edge type alias (it must already be declared).
InSitu
[alias] (':'|IS) <label> ['=>'|IMPLIES] – an in-situ reference.
implies (=>/IMPLIES present) requires label to name an
already-declared identifying label; without it, the
label need not be declared. alias is only legal in constraint
FOR-clause context (forbidden on an edge type’s own
endpoint references).
Trait Implementations§
Source§impl Clone for GraphTypeElementRef
impl Clone for GraphTypeElementRef
Source§impl Debug for GraphTypeElementRef
impl Debug for GraphTypeElementRef
Source§impl PartialEq for GraphTypeElementRef
impl PartialEq for GraphTypeElementRef
impl StructuralPartialEq for GraphTypeElementRef
Auto Trait Implementations§
impl Forget for GraphTypeElementRef
impl Freeze for GraphTypeElementRef
impl Move for GraphTypeElementRef
impl RefUnwindSafe for GraphTypeElementRef
impl Send for GraphTypeElementRef
impl Sync for GraphTypeElementRef
impl Unpin for GraphTypeElementRef
impl UnsafeUnpin for GraphTypeElementRef
impl UnwindSafe for GraphTypeElementRef
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