Struct yash_syntax::syntax::FunctionDefinition
source · [−]pub struct FunctionDefinition {
pub has_keyword: bool,
pub name: Word,
pub body: Rc<FullCompoundCommand>,
}
Expand description
Function definition command.
Fields
has_keyword: bool
Whether the function definition command starts with the function
reserved word.
name: Word
Function name.
body: Rc<FullCompoundCommand>
Function body.
Trait Implementations
sourceimpl Clone for FunctionDefinition
impl Clone for FunctionDefinition
sourcefn clone(&self) -> FunctionDefinition
fn clone(&self) -> FunctionDefinition
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FunctionDefinition
impl Debug for FunctionDefinition
sourceimpl Display for FunctionDefinition
impl Display for FunctionDefinition
sourceimpl PartialEq<FunctionDefinition> for FunctionDefinition
impl PartialEq<FunctionDefinition> for FunctionDefinition
sourcefn eq(&self, other: &FunctionDefinition) -> bool
fn eq(&self, other: &FunctionDefinition) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FunctionDefinition) -> bool
fn ne(&self, other: &FunctionDefinition) -> bool
This method tests for !=
.
impl Eq for FunctionDefinition
impl StructuralEq for FunctionDefinition
impl StructuralPartialEq for FunctionDefinition
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more