I was going through the code of open brush implementation for different tokens, and was confused at a point in PSP22 contract where there is a word written default
, as shown below
default fn _emit_transfer_event(&self, _from: Option<AccountId>, _to: Option<AccountId>, _amount: Balance) {}
which is the implementation of a trait, so here i was not able to understand why default
word is used.
Some questions that are in my mind:
- Is it used to as
Default
keyword used in rust or something else? - Is it defined in open brush to be used by itself?
- If it is defined in open brush please do point to its implementation.
The reference to the git repo for the same can be find here.