pub struct Selection { /* private fields */ }
Implementations§
Source§impl Selection
impl Selection
pub fn new( words: Vec<Loc<RpValue>>, values: HashMap<String, (Loc<String>, Loc<RpValue>)>, ) -> Selection
Sourcepub fn take<Q>(&mut self, key: &Q) -> Option<Loc<RpValue>>
pub fn take<Q>(&mut self, key: &Q) -> Option<Loc<RpValue>>
Take the given value, removing it in the process.
Sourcepub fn take_words(&mut self) -> Vec<Loc<RpValue>>
pub fn take_words(&mut self) -> Vec<Loc<RpValue>>
Take the given value, removing it in the process.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Selection
impl RefUnwindSafe for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnwindSafe for Selection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more