Struct reproto_core::Attributes
[−]
[src]
pub struct Attributes { /* fields omitted */ }
Methods
impl Attributes
[src]
fn new(
words: HashMap<String, Pos>,
selections: HashMap<String, Loc<Selection>>
) -> Attributes
[src]
words: HashMap<String, Pos>,
selections: HashMap<String, Loc<Selection>>
) -> Attributes
fn take_word<Q: ?Sized>(&mut self, key: &Q) -> bool where
String: Borrow<Q>,
Q: Hash + Eq,
[src]
String: Borrow<Q>,
Q: Hash + Eq,
Take the given selection, removing it in the process.
fn take_selection<Q: ?Sized>(&mut self, key: &Q) -> Option<Loc<Selection>> where
String: Borrow<Q>,
Q: Hash + Eq,
[src]
String: Borrow<Q>,
Q: Hash + Eq,
Take the given selection, removing it in the process.
fn unused(&self) -> Unused
[src]
Get an iterator over unused positions.
Trait Implementations
impl Debug for Attributes
[src]
impl Clone for Attributes
[src]
fn clone(&self) -> Attributes
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more