pub struct Function {
pub name: String,
pub documentation: Vec<String>,
pub instructions: Instructions,
/* private fields */
}
Expand description
Function is a replaceble public part of a module.
You can have multiple variations of a function. These functions can be swapped out when building the module.
§Variations
Some examples why functions can have variations.
- Size optimized
- Performance optimized
- Last known working version
- Currently in development
Fields§
§name: String
Name of the function
documentation: Vec<String>
Documentation of the function.
instructions: Instructions
Instructions belonging to this function.
Trait Implementations§
Source§impl UserCount for Function
impl UserCount for Function
Source§fn user_increase(&mut self)
fn user_increase(&mut self)
Add a user
Source§fn user_count(&self) -> usize
fn user_count(&self) -> usize
How many users have been registered
Source§fn user_empty(&self) -> bool
fn user_empty(&self) -> bool
Are there any users registered
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