Struct libafl::bolts::serdeany::serdeany_registry::NamedSerdeAnyMap [−][src]
pub struct NamedSerdeAnyMap { /* fields omitted */ }
Implementations
impl NamedSerdeAnyMap
[src]
impl NamedSerdeAnyMap
[src]#[must_use]pub fn by_typeid(&self, name: &str, typeid: &TypeId) -> Option<&dyn SerdeAny>
[src]
#[must_use]pub fn by_typeid(&self, name: &str, typeid: &TypeId) -> Option<&dyn SerdeAny>
[src]Get an element of a given type contained in this map by TypeId
.
#[must_use]pub fn get_mut<T>(&mut self, name: &str) -> Option<&mut T> where
T: Any,
[src]
#[must_use]pub fn get_mut<T>(&mut self, name: &str) -> Option<&mut T> where
T: Any,
[src]Get an element of a given type contained in this map by TypeId
, as mut.
#[must_use]pub fn by_typeid_mut(
&mut self,
name: &str,
typeid: &TypeId
) -> Option<&mut dyn SerdeAny>
[src]
#[must_use]pub fn by_typeid_mut(
&mut self,
name: &str,
typeid: &TypeId
) -> Option<&mut dyn SerdeAny>
[src]Get an element of a given type contained in this map by TypeId
, as mut.
#[must_use]pub fn get_all<T>(
&self
) -> Option<Map<Values<'_, u64, Box<dyn SerdeAny>>, fn(_: &Box<dyn SerdeAny>) -> &T>> where
T: Any,
[src]
#[must_use]pub fn get_all<T>(
&self
) -> Option<Map<Values<'_, u64, Box<dyn SerdeAny>>, fn(_: &Box<dyn SerdeAny>) -> &T>> where
T: Any,
[src]Get all elements of a type contained in this map.
#[must_use]pub fn all_by_typeid(
&self,
typeid: &TypeId
) -> Option<Map<Values<'_, u64, Box<dyn SerdeAny>>, fn(_: &Box<dyn SerdeAny>) -> &dyn SerdeAny>>
[src]
#[must_use]pub fn all_by_typeid(
&self,
typeid: &TypeId
) -> Option<Map<Values<'_, u64, Box<dyn SerdeAny>>, fn(_: &Box<dyn SerdeAny>) -> &dyn SerdeAny>>
[src]Get all elements of a given type contained in this map by TypeId
.
pub fn get_all_mut<T>(
&mut self
) -> Option<Map<ValuesMut<'_, u64, Box<dyn SerdeAny>>, fn(_: &mut Box<dyn SerdeAny>) -> &mut T>> where
T: Any,
[src]
pub fn get_all_mut<T>(
&mut self
) -> Option<Map<ValuesMut<'_, u64, Box<dyn SerdeAny>>, fn(_: &mut Box<dyn SerdeAny>) -> &mut T>> where
T: Any,
[src]Get all elements contained in this map, as mut.
pub fn all_by_typeid_mut(
&mut self,
typeid: &TypeId
) -> Option<Map<ValuesMut<'_, u64, Box<dyn SerdeAny>>, fn(_: &mut Box<dyn SerdeAny>) -> &mut dyn SerdeAny>>
[src]
pub fn all_by_typeid_mut(
&mut self,
typeid: &TypeId
) -> Option<Map<ValuesMut<'_, u64, Box<dyn SerdeAny>>, fn(_: &mut Box<dyn SerdeAny>) -> &mut dyn SerdeAny>>
[src]Get all TypeId
s
contained in this map, as mut.
pub fn all_typeids(
&self
) -> Map<Keys<'_, u64, HashMap<u64, Box<dyn SerdeAny>>>, fn(_: &u64) -> TypeId>
[src]
pub fn all_typeids(
&self
) -> Map<Keys<'_, u64, HashMap<u64, Box<dyn SerdeAny>>>, fn(_: &u64) -> TypeId>
[src]Get all TypeId
s
contained in this map.
pub fn for_each(
&self,
func: fn(_: &TypeId, _: &Box<dyn SerdeAny>) -> Result<(), Error>
) -> Result<(), Error>
[src]
pub fn for_each(
&self,
func: fn(_: &TypeId, _: &Box<dyn SerdeAny>) -> Result<(), Error>
) -> Result<(), Error>
[src]Run func
for each element in this map.
pub fn for_each_mut(
&mut self,
func: fn(_: &TypeId, _: &mut Box<dyn SerdeAny>) -> Result<(), Error>
) -> Result<(), Error>
[src]
pub fn for_each_mut(
&mut self,
func: fn(_: &TypeId, _: &mut Box<dyn SerdeAny>) -> Result<(), Error>
) -> Result<(), Error>
[src]Run func
for each element in this map, getting a mutable borrow.
#[must_use]pub fn contains_type<T>(&self) -> bool where
T: Any,
[src]
#[must_use]pub fn contains_type<T>(&self) -> bool where
T: Any,
[src]Returns if the element with a given type is contained in this map.
Trait Implementations
impl Default for NamedSerdeAnyMap
[src]
impl Default for NamedSerdeAnyMap
[src]impl<'de> Deserialize<'de> for NamedSerdeAnyMap
[src]
impl<'de> Deserialize<'de> for NamedSerdeAnyMap
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Serialize for NamedSerdeAnyMap
[src]
impl Serialize for NamedSerdeAnyMap
[src]Auto Trait Implementations
impl !RefUnwindSafe for NamedSerdeAnyMap
impl !Send for NamedSerdeAnyMap
impl !Sync for NamedSerdeAnyMap
impl Unpin for NamedSerdeAnyMap
impl !UnwindSafe for NamedSerdeAnyMap
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]pub fn erased_serialize(
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
[src]
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,