pub struct BashFunction {
pub name: String,
pub local_vars: Vec<String>,
pub body: Vec<String>,
pub description: Option<String>,
}Expand description
A Bash shell function.
Fields§
§name: StringFunction name
local_vars: Vec<String>Local variable declarations (names only — values set in body)
body: Vec<String>Body lines (raw Bash statements)
description: Option<String>Optional description (emitted as a comment before the function)
Implementations§
Trait Implementations§
Source§impl Clone for BashFunction
impl Clone for BashFunction
Source§fn clone(&self) -> BashFunction
fn clone(&self) -> BashFunction
Returns a duplicate of the value. Read more
1.0.0 · 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 BashFunction
impl Debug for BashFunction
Source§impl PartialEq for BashFunction
impl PartialEq for BashFunction
impl StructuralPartialEq for BashFunction
Auto Trait Implementations§
impl Freeze for BashFunction
impl RefUnwindSafe for BashFunction
impl Send for BashFunction
impl Sync for BashFunction
impl Unpin for BashFunction
impl UnsafeUnpin for BashFunction
impl UnwindSafe for BashFunction
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