pub struct Kind {
pub node: Path,
pub variant: Ident,
}Expand description
One upstream of a fan-in: the node, and the word that names it everywhere a discriminant is spelled.
Fields§
§node: PathThe upstream node, as the declaration spelled it.
A PATH carried verbatim and resolved nowhere, for RecordModel::subscribe’s reason: the
lineage variant’s payload is <this as Transformer>::Key, so the compiler resolves it at the
declaration that wrote the string.
variant: IdentThe variant’s name — the upstream path’s LAST segment, which is the type’s own name.
The path is what a reader has in front of them, so the word is read off it rather than
declared: upstream(node = "asr::Segment") is the Segment variant, and two upstreams whose
last segments agree are refused at the declaration rather than colliding inside the emitted
enum.
Trait Implementations§
Auto Trait Implementations§
impl !Send for Kind
impl !Sync for Kind
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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