pub struct CustomRelationCtx<'a> {
pub ports: &'a [(PortRef, Option<&'static TypeNode>)],
}Expand description
Context passed to a Custom relation’s run function. Borrows
from the solver; exposes a read-only view of each participating
port’s current type resolution. Concrete shape lands when the
TypeSolver (T4) materializes.
Fields§
§ports: &'a [(PortRef, Option<&'static TypeNode>)]Solver-allocated handles for the ports this relation touches, paired with their current best-known TypeNode (None = still unresolved).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CustomRelationCtx<'a>
impl<'a> RefUnwindSafe for CustomRelationCtx<'a>
impl<'a> Send for CustomRelationCtx<'a>
impl<'a> Sync for CustomRelationCtx<'a>
impl<'a> Unpin for CustomRelationCtx<'a>
impl<'a> UnsafeUnpin for CustomRelationCtx<'a>
impl<'a> UnwindSafe for CustomRelationCtx<'a>
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