Struct aoe2_probe::utils::map::PatchedMap
source · [−]pub struct PatchedMap {
pub patches: HashMap<String, Arc<dyn Fn(&mut PatchedMap, &mut Token) + Send + Sync>>,
/* private fields */
}Fields
patches: HashMap<String, Arc<dyn Fn(&mut PatchedMap, &mut Token) + Send + Sync>>Implementations
sourceimpl PatchedMap
impl PatchedMap
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn push_back<T: Into<Token>>(&mut self, key_str: &str, value: T) -> bool
pub fn update<T: Into<Token>>(
&mut self,
key: &str,
value: T
) -> Result<(), String>
pub fn contains(&self, key: &str) -> bool
pub fn keys(&self) -> Keys<'_, String, Token>
pub fn iter(&self) -> SeqIter<'_>ⓘNotable traits for SeqIter<'a>impl<'a> Iterator for SeqIter<'a> type Item = (&'a String, &'a Token);
Trait Implementations
sourceimpl Clone for PatchedMap
impl Clone for PatchedMap
sourcefn clone(&self) -> PatchedMap
fn clone(&self) -> PatchedMap
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for PatchedMap
impl Debug for PatchedMap
sourceimpl Default for PatchedMap
impl Default for PatchedMap
sourcefn default() -> PatchedMap
fn default() -> PatchedMap
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for PatchedMap
impl<'de> Deserialize<'de> for PatchedMap
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Encode for PatchedMap
impl Encode for PatchedMap
sourceimpl From<PatchedMap> for Token
impl From<PatchedMap> for Token
sourcefn from(map: PatchedMap) -> Self
fn from(map: PatchedMap) -> Self
Converts to this type from the input type.
sourceimpl Index<&str> for PatchedMap
impl Index<&str> for PatchedMap
sourceimpl IndexMut<&str> for PatchedMap
impl IndexMut<&str> for PatchedMap
sourceimpl Serialize for PatchedMap
impl Serialize for PatchedMap
Auto Trait Implementations
impl !RefUnwindSafe for PatchedMap
impl Send for PatchedMap
impl Sync for PatchedMap
impl Unpin for PatchedMap
impl !UnwindSafe for PatchedMap
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more