Create metadata that's the same but with executable permission. # Returns New metadata with the owner execute bit set.
(self)
| 407 | /// |
| 408 | /// New metadata with the owner execute bit set. |
| 409 | pub fn with_executable(self) -> Self { |
| 410 | Self { |
| 411 | permissions: self.permissions | 0o100, // Set owner execute |
| 412 | ..self |
| 413 | } |
| 414 | } |
| 415 | |
| 416 | /// Create metadata that's the same but without executable permission. |
| 417 | /// |
no outgoing calls