pub struct FormalParameter { /* private fields */ }
Expand description
“Formal parameter” is a fancy way of saying “function parameter”.
In the declaration of a function, the parameters must be identifiers, not any value like numbers, strings, or objects.
function foo(formalParameter1, formalParameter2) {
}
More information:
Implementations§
Trait Implementations§
Source§impl Clone for FormalParameter
impl Clone for FormalParameter
Source§fn clone(&self) -> FormalParameter
fn clone(&self) -> FormalParameter
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 FormalParameter
impl Debug for FormalParameter
Source§impl Display for FormalParameter
impl Display for FormalParameter
Source§impl Drop for FormalParameter
impl Drop for FormalParameter
Source§impl PartialEq for FormalParameter
impl PartialEq for FormalParameter
Source§impl Trace for FormalParameter
impl Trace for FormalParameter
Source§fn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects
impl StructuralPartialEq for FormalParameter
Auto Trait Implementations§
impl Freeze for FormalParameter
impl RefUnwindSafe for FormalParameter
impl !Send for FormalParameter
impl !Sync for FormalParameter
impl Unpin for FormalParameter
impl UnwindSafe for FormalParameter
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