Trait libafl_bolts::tuples::MatchFirstType
source · pub trait MatchFirstType {
// Required methods
fn match_first_type<T: 'static>(&self) -> Option<&T>;
fn match_first_type_mut<T: 'static>(&mut self) -> Option<&mut T>;
}
Expand description
Returns the first element with the given type
Required Methods§
sourcefn match_first_type<T: 'static>(&self) -> Option<&T>
fn match_first_type<T: 'static>(&self) -> Option<&T>
Returns the first element with the given type as borrow, or Option::None
sourcefn match_first_type_mut<T: 'static>(&mut self) -> Option<&mut T>
fn match_first_type_mut<T: 'static>(&mut self) -> Option<&mut T>
Returns the first element with the given type as mutable borrow, or Option::None
Object Safety§
This trait is not object safe.