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 Display for Function

fn fmt(&self, f: &mut Formatter) -> Result<(), Error>

Derived Implementations

impl PartialOrd for Function

fn partial_cmp(&self, __arg_0: &Function) -> Option<Ordering>

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

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

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

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

impl Ord for Function

fn cmp(&self, __arg_0: &Function) -> Ordering

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

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