(m: i64)
| 100 | type Error = MetadataError; |
| 101 | |
| 102 | fn try_from(m: i64) -> Result<Memory, Self::Error> { |
| 103 | if !(128..=10240).contains(&m) { |
| 104 | return Err(MetadataError::InvalidMemory(format!("{m}"))); |
| 105 | } |
| 106 | Ok(Memory(m as u32)) |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | impl FromStr for Memory { |
nothing calls this directly
no test coverage detected