Trait libafl_bolts::tuples::ExtractFirstRefType

source ·
pub trait ExtractFirstRefType {
    // Required method
    fn take<'a, T: 'static>(self) -> (Option<&'a T>, Self);
}
Expand description

Returns the first element with the given type (dereference mut version)

Required Methods§

source

fn take<'a, T: 'static>(self) -> (Option<&'a T>, Self)

Returns the first element with the given type as borrow, or Option::None

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ExtractFirstRefType for ()

source§

fn take<'a, T: 'static>(self) -> (Option<&'a T>, Self)

source§

impl<Head, Tail> ExtractFirstRefType for (Option<&Head>, Tail)
where Head: 'static, Tail: ExtractFirstRefType,

source§

fn take<'a, T: 'static>(self) -> (Option<&'a T>, Self)

source§

impl<Head, Tail> ExtractFirstRefType for (Option<&mut Head>, Tail)
where Head: 'static, Tail: ExtractFirstRefType,

source§

fn take<'a, T: 'static>(self) -> (Option<&'a T>, Self)

Implementors§