[−][src]Struct ssf::ir::FunctionDefinition
Methods
impl FunctionDefinition
[src]
pub fn new(
name: impl Into<String>,
arguments: Vec<Argument>,
body: impl Into<Expression>,
result_type: impl Into<Value> + Clone
) -> Self
[src]
name: impl Into<String>,
arguments: Vec<Argument>,
body: impl Into<Expression>,
result_type: impl Into<Value> + Clone
) -> Self
pub fn name(&self) -> &str
[src]
pub fn environment(&self) -> &[Argument]
[src]
pub fn arguments(&self) -> &[Argument]
[src]
pub fn body(&self) -> &Expression
[src]
pub fn result_type(&self) -> &Value
[src]
pub fn type_(&self) -> &Function
[src]
Trait Implementations
impl Clone for FunctionDefinition
[src]
fn clone(&self) -> FunctionDefinition
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for FunctionDefinition
[src]
impl From<FunctionDefinition> for Definition
[src]
fn from(function_definition: FunctionDefinition) -> Self
[src]
impl PartialEq<FunctionDefinition> for FunctionDefinition
[src]
fn eq(&self, other: &FunctionDefinition) -> bool
[src]
fn ne(&self, other: &FunctionDefinition) -> bool
[src]
impl StructuralPartialEq for FunctionDefinition
[src]
Auto Trait Implementations
impl !RefUnwindSafe for FunctionDefinition
impl !Send for FunctionDefinition
impl !Sync for FunctionDefinition
impl Unpin for FunctionDefinition
impl !UnwindSafe for FunctionDefinition
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,