pub struct MappingList { /* private fields */ }Implementations§
Source§impl MappingList
impl MappingList
pub fn new() -> Self
Sourcepub fn unsorted_for_each(&self, callback: impl Fn(&Mapping, usize))
pub fn unsorted_for_each(&self, callback: impl Fn(&Mapping, usize))
Iterate through internal items. This method takes the same arguments that
Array.prototype.forEach takes.
NOTE: The order of the mappings is NOT guaranteed.
pub fn add(&mut self, mapping: Mapping)
pub fn to_array(&mut self) -> Vec<Mapping>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MappingList
impl RefUnwindSafe for MappingList
impl Send for MappingList
impl Sync for MappingList
impl Unpin for MappingList
impl UnwindSafe for MappingList
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