pub struct FunctionDefinition<'a> { /* private fields */ }Expand description
Function definition in a jeff module.
Implementations§
Source§impl<'a> FunctionDefinition<'a>
impl<'a> FunctionDefinition<'a>
Sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
Returns the name of this function.
§Panics
Panics if the function name index is out of bounds or not valid utf8.
Sourcepub fn values(&self) -> ValueTable<'a>
pub fn values(&self) -> ValueTable<'a>
Returns the value table associated with this function.
Sourcepub fn input_types(
&self,
) -> impl Iterator<Item = Result<FunctionIOValue<'a>, ReadError>> + 'a
pub fn input_types( &self, ) -> impl Iterator<Item = Result<FunctionIOValue<'a>, ReadError>> + 'a
Returns the input types of this function.
Sourcepub fn output_types(
&self,
) -> impl Iterator<Item = Result<FunctionIOValue<'a>, ReadError>> + 'a
pub fn output_types( &self, ) -> impl Iterator<Item = Result<FunctionIOValue<'a>, ReadError>> + 'a
Returns the output types of this function.
Trait Implementations§
Source§impl<'a> Clone for FunctionDefinition<'a>
impl<'a> Clone for FunctionDefinition<'a>
Source§fn clone(&self) -> FunctionDefinition<'a>
fn clone(&self) -> FunctionDefinition<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for FunctionDefinition<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for FunctionDefinition<'a>
impl<'a> !Send for FunctionDefinition<'a>
impl<'a> !Sync for FunctionDefinition<'a>
impl<'a> !UnwindSafe for FunctionDefinition<'a>
impl<'a> Freeze for FunctionDefinition<'a>
impl<'a> Unpin for FunctionDefinition<'a>
impl<'a> UnsafeUnpin for FunctionDefinition<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more