pub struct Function { /* private fields */ }
Implementations§
Source§impl Function
impl Function
pub fn new<S: Into<String>>( name: S, typ: Type, expr: Option<Expr>, position: Option<Position>, ) -> Self
pub fn add_parameter(&mut self, parameter: Parameter)
pub fn parameters(&self) -> &Vec<Parameter>
pub fn parameters_type(&self) -> Vec<Type>
pub fn duplicate(&self) -> Result<(), Error>
pub fn check_bounded(&self, problem: &Problem) -> Result<(), Error>
Trait Implementations§
Source§impl Named<FunctionId> for Function
impl Named<FunctionId> for Function
Source§impl WithExpr for Function
impl WithExpr for Function
fn expr(&self) -> &Option<Expr>
fn set_expr(&mut self, expr: Option<Expr>)
fn entries(&self) -> Entries
fn resolve_type_expr(&mut self, entries: &TypeEntries) -> Result<(), Error>
fn resolve_expr( &self, problem: &Problem, entries: &Entries, ) -> Result<Self, Error>
fn check_parameter_size(&self, problem: &Problem) -> Result<(), Error>
fn check_type(&self, problem: &Problem) -> Result<(), Error>
Source§impl WithType for Function
impl WithType for Function
fn typ(&self) -> &Type
fn set_type(&mut self, typ: Type)
fn resolve_type_children(&mut self, entries: &TypeEntries) -> Result<(), Error>
fn check_interval_children(&self, problem: &Problem) -> Result<(), Error>
fn resolve_type(&mut self, entries: &TypeEntries) -> Result<(), Error>
fn check_interval(&self, problem: &Problem) -> Result<(), Error>
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