pub struct InterfaceMount {
pub mount: Ident,
pub ty: Type,
pub queried: bool,
}Expand description
ONE interface on a graph root: the field that names it, and whether this deployment publishes its root fields.
A struct rather than the two parallel lists a node’s mount and membership are kept in, and the reason is that the node pair is spent by two DIFFERENT walks — every node is walked, only the marked ones are folded — where an interface joins exactly one. So the fact and the field it is about are one value.
Fields§
§mount: IdentThe field’s name — read once so a declaration carries no dead_code warning for it.
ty: TypeThe interface’s type, as the field spelled it.
queried: boolWhether the field wrote #[ingraph(query)] — presence is the enablement, so an interface that
did not write it publishes no root field.
Trait Implementations§
Source§impl Clone for InterfaceMount
impl Clone for InterfaceMount
Auto Trait Implementations§
impl !Send for InterfaceMount
impl !Sync for InterfaceMount
impl Freeze for InterfaceMount
impl RefUnwindSafe for InterfaceMount
impl Unpin for InterfaceMount
impl UnsafeUnpin for InterfaceMount
impl UnwindSafe for InterfaceMount
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