pub struct FunctionUnit {
pub name: String,
pub attributes: Vec<String>,
pub visibility: Visibility,
pub doc: Option<String>,
pub signature: Option<String>,
pub body: Option<String>,
pub source: Option<String>,
}Expand description
Represents a function or method in the code
Fields§
§name: StringThe name of the function
attributes: Vec<String>Attributes applied to the function
visibility: VisibilityThe visibility of the function
doc: Option<String>The documentation for the function
signature: Option<String>The function signature (without body)
body: Option<String>The function body
source: Option<String>The source code of the function
Trait Implementations§
Source§impl Clone for FunctionUnit
impl Clone for FunctionUnit
Source§fn clone(&self) -> FunctionUnit
fn clone(&self) -> FunctionUnit
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 moreSource§impl Debug for FunctionUnit
impl Debug for FunctionUnit
Source§impl Default for FunctionUnit
impl Default for FunctionUnit
Source§fn default() -> FunctionUnit
fn default() -> FunctionUnit
Returns the “default value” for a type. Read more
Source§impl Formatter for FunctionUnit
impl Formatter for FunctionUnit
fn format( &self, strategy: &BankStrategy, language: LanguageType, ) -> Result<String>
Auto Trait Implementations§
impl Freeze for FunctionUnit
impl RefUnwindSafe for FunctionUnit
impl Send for FunctionUnit
impl Sync for FunctionUnit
impl Unpin for FunctionUnit
impl UnsafeUnpin for FunctionUnit
impl UnwindSafe for FunctionUnit
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