Struct libafl::mutators::token_mutations::Tokens [−][src]
pub struct Tokens { /* fields omitted */ }
Expand description
A state metadata holding a list of tokens
Implementations
impl Tokens
[src]
impl Tokens
[src]The metadata used for token mutators
#[must_use]pub fn new(token_vec: Vec<Vec<u8>>) -> Self
[src]
#[must_use]pub fn new(token_vec: Vec<Vec<u8>>) -> Self
[src]Creates a new tokens metadata (old-skool afl name: dictornary
)
pub fn from_tokens_file<P>(file: P) -> Result<Self, Error> where
P: AsRef<Path>,
[src]
pub fn from_tokens_file<P>(file: P) -> Result<Self, Error> where
P: AsRef<Path>,
[src]Creates a new instance from a file
pub fn add_token(&mut self, token: &Vec<u8>) -> bool
[src]
pub fn add_token(&mut self, token: &Vec<u8>) -> bool
[src]Adds a token to a dictionary, checking it is not a duplicate
Returns false
if the token was already present and did not get added.
Trait Implementations
impl<'de> Deserialize<'de> for Tokens
[src]
impl<'de> Deserialize<'de> for Tokens
[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
Auto Trait Implementations
impl RefUnwindSafe for Tokens
impl Send for Tokens
impl Sync for Tokens
impl Unpin for Tokens
impl UnwindSafe for Tokens
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>,