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
sourceimpl Clone for FormalParameter
impl Clone for FormalParameter
sourcefn clone(&self) -> FormalParameter
fn clone(&self) -> FormalParameter
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 moresourceimpl Debug for FormalParameter
impl Debug for FormalParameter
sourceimpl Display for FormalParameter
impl Display for FormalParameter
sourceimpl Drop for FormalParameter
impl Drop for FormalParameter
sourceimpl Finalize for FormalParameter
impl Finalize for FormalParameter
sourceimpl PartialEq<FormalParameter> for FormalParameter
impl PartialEq<FormalParameter> for FormalParameter
sourcefn eq(&self, other: &FormalParameter) -> bool
fn eq(&self, other: &FormalParameter) -> bool
sourceimpl Trace for FormalParameter
impl Trace for FormalParameter
sourcefn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects Read more
impl StructuralPartialEq for FormalParameter
Auto Trait Implementations
impl RefUnwindSafe for FormalParameter
impl !Send for FormalParameter
impl !Sync for FormalParameter
impl Unpin for FormalParameter
impl UnwindSafe for FormalParameter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more