mutability_to_str

Function mutability_to_str 

Source
pub fn mutability_to_str(mutability: &StateMutability) -> &'static str
Expand description

Convert the mutability to a string.

§Arguments

  • mutability - The mutability

§Returns

The string representation of the mutability.

§Example

let mutability = StateMutability::Pure;
let str = mutability_to_str(mutability);
assert_eq!(str, "pure");