pub struct Function {
pub name: Identifier,
pub args: Vec<Argument>,
pub output: ArgType,
}
Expand description
Information about a function
Fields§
§name: Identifier
§args: Vec<Argument>
§output: ArgType
Implementations§
Source§impl Function
impl Function
pub fn new(name: Identifier, args: Vec<Argument>, output: ArgType) -> Self
Sourcepub fn is_virtual(&self) -> bool
pub fn is_virtual(&self) -> bool
Wehther this function is virtual to Syzkaller or actually exist on the target OS
Sourcepub fn identifier(&self) -> &Identifier
pub fn identifier(&self) -> &Identifier
Get identifier for object
Sourcepub fn ident_matches(&self, name: &str) -> bool
pub fn ident_matches(&self, name: &str) -> bool
Get identifier for object
pub fn args(&self) -> Iter<'_, Argument>
pub fn output(&self) -> &ArgType
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Function
impl<'de> Deserialize<'de> for Function
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Function
impl StructuralPartialEq for Function
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more