fix(builder)!: Move remove to reflection from builder

It isn't derive compatible, so I have the feeling it should be treated
differently.
This commit is contained in:
Ed Page 2024-08-09 13:54:39 -05:00
parent fba563a717
commit 7d14ce34de

View file

@ -880,13 +880,6 @@ impl Arg {
self.ext.set(tagged); self.ext.set(tagged);
self self
} }
/// Remove an [`ArgExt`]
#[cfg(feature = "unstable-ext")]
pub fn remove<T: ArgExt + Extension>(mut self) -> Self {
self.ext.remove::<T>();
self
}
} }
/// # Value Handling /// # Value Handling
@ -4240,6 +4233,12 @@ impl Arg {
pub fn get<T: ArgExt + Extension>(&self) -> Option<&T> { pub fn get<T: ArgExt + Extension>(&self) -> Option<&T> {
self.ext.get::<T>() self.ext.get::<T>()
} }
/// Remove an [`ArgExt`]
#[cfg(feature = "unstable-ext")]
pub fn remove<T: ArgExt + Extension>(mut self) -> Option<T> {
self.ext.remove::<T>()
}
} }
/// # Internally used only /// # Internally used only