|
|
|
@ -60,6 +60,12 @@ public unsafe struct World<TContext> |
|
|
|
|
=> Pair(Entity<TRelation>(), Entity<TTarget>()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Iterator<TContext> Term(Term term) => Iterator<TContext>.FromTerm(this, term); |
|
|
|
|
public Filter<TContext> Filter(FilterDesc desc) => new(this, desc); |
|
|
|
|
public Query<TContext> Query(QueryDesc desc) => new(this, desc); |
|
|
|
|
public Rule<TContext> Rule(FilterDesc desc) => new(this, desc); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public bool Equals(World<TContext> other) => Value == other.Value; |
|
|
|
|
public override bool Equals(object? obj) => (obj is World<TContext> other) && Equals(other); |
|
|
|
|
public override int GetHashCode() => Value.GetHashCode(); |
|
|
|
|