From 9655c4b85dad4a49266cc46fa4d766bbe7f3b718 Mon Sep 17 00:00:00 2001 From: Emily Toop Date: Thu, 15 Feb 2018 17:44:06 +0000 Subject: [PATCH] Add retract to entity builder. (#559) r=rnewman --- src/entity_builder.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/entity_builder.rs b/src/entity_builder.rs index a449a52b..d166a54f 100644 --- a/src/entity_builder.rs +++ b/src/entity_builder.rs @@ -176,6 +176,11 @@ impl EntityBuilder where T: BuildTerms { where V: IntoThing> { self.builder.add(self.entity.clone(), a, v) } + + pub fn retract(&mut self, a: KnownEntid, v: V) -> Result<()> + where V: IntoThing> { + self.builder.retract(self.entity.clone(), a, v) + } } pub struct InProgressBuilder<'a, 'c> {