Trait libafl::bolts::tuples::MatchFirstType [−][src]
pub trait MatchFirstType { 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
fn 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
fn 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