Struct reproto_core::Selection
[−]
[src]
pub struct Selection { /* fields omitted */ }
Methods
impl Selection
[src]
pub fn new(
words: Vec<Loc<RpValue>>,
values: HashMap<String, (Loc<String>, Loc<RpValue>)>
) -> Selection
[src]
words: Vec<Loc<RpValue>>,
values: HashMap<String, (Loc<String>, Loc<RpValue>)>
) -> Selection
pub fn take<Q: ?Sized>(&mut self, key: &Q) -> Option<Loc<RpValue>> where
String: Borrow<Q>,
Q: Hash + Eq,
[src]
String: Borrow<Q>,
Q: Hash + Eq,
Take the given value, removing it in the process.
pub fn take_words(&mut self) -> Vec<Loc<RpValue>>
[src]
Take the given value, removing it in the process.
pub fn take_word(&mut self) -> Option<Loc<RpValue>>
[src]
Take a single word.
pub fn unused(&self) -> Unused
[src]
Get an iterator over unused positions.
Trait Implementations
impl Debug for Selection
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more