Struct gdl_parser::Function [-] [+] [src]

pub struct Function {
    pub name: Constant,
    pub args: Vec<Term>,
}

A function term

Fields

name
args

Methods

impl Function

fn new<T: Into<Constant>>(name: T, args: Vec<Term>) -> Function

Trait Implementations

impl Into<Term> for Function

fn into(self) -> Term

impl ToString for Function

fn to_string(&self) -> String

Derived Implementations

impl Encodable for Function

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S>

impl Decodable for Function

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Function, __D>

impl PartialEq for Function

fn eq(&self, __arg_0: &Function) -> bool

fn ne(&self, __arg_0: &Function) -> bool

impl Eq for Function

fn assert_receiver_is_total_eq(&self)

impl Hash for Function

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Clone for Function

fn clone(&self) -> Function

fn clone_from(&mut self, source: &Self)

impl Debug for Function

fn fmt(&self, __arg_0: &mut Formatter) -> Result