Add retract to entity builder. (#559) r=rnewman

This commit is contained in:
Emily Toop 2018-02-15 17:44:06 +00:00 committed by Richard Newman
parent 01d9b83a9b
commit 9655c4b85d

View file

@ -176,6 +176,11 @@ impl<T> EntityBuilder<T> where T: BuildTerms {
where V: IntoThing<TypedValueOr<TempIdHandle>> {
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> {