pub struct RefMap { /* private fields */ }Implementations§
Source§impl RefMap
impl RefMap
pub fn new() -> Self
pub fn add( &mut self, ref_id: String, backend_node_id: Option<i64>, role: &str, name: &str, nth: Option<usize>, )
pub fn add_with_frame( &mut self, ref_id: String, backend_node_id: Option<i64>, role: &str, name: &str, nth: Option<usize>, frame_id: Option<&str>, )
pub fn add_selector( &mut self, ref_id: String, selector: String, role: &str, name: &str, nth: Option<usize>, )
pub fn get(&self, ref_id: &str) -> Option<&RefEntry>
pub fn entries_sorted(&self) -> Vec<(String, RefEntry)>
pub fn remove(&mut self, ref_id: &str)
pub fn clear(&mut self)
pub fn next_ref_num(&self) -> usize
pub fn set_next_ref_num(&mut self, n: usize)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RefMap
impl RefUnwindSafe for RefMap
impl Send for RefMap
impl Sync for RefMap
impl Unpin for RefMap
impl UnsafeUnpin for RefMap
impl UnwindSafe for RefMap
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