Add retract to entity builder. (#559) r=rnewman
This commit is contained in:
parent
01d9b83a9b
commit
9655c4b85d
1 changed files with 5 additions and 0 deletions
|
@ -176,6 +176,11 @@ impl<T> EntityBuilder<T> where T: BuildTerms {
|
||||||
where V: IntoThing<TypedValueOr<TempIdHandle>> {
|
where V: IntoThing<TypedValueOr<TempIdHandle>> {
|
||||||
self.builder.add(self.entity.clone(), a, v)
|
self.builder.add(self.entity.clone(), a, v)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn retract<V>(&mut self, a: KnownEntid, v: V) -> Result<()>
|
||||||
|
where V: IntoThing<TypedValueOr<TempIdHandle>> {
|
||||||
|
self.builder.retract(self.entity.clone(), a, v)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct InProgressBuilder<'a, 'c> {
|
pub struct InProgressBuilder<'a, 'c> {
|
||||||
|
|
Loading…
Reference in a new issue