MCPcopy Index your code
hub / github.com/endbasic/endbasic / is_valid

Method is_valid

std/src/storage/mod.rs:200–202  ·  view source on GitHub ↗

Returns true if the given drive name is valid.

(s: &str)

Source from the content-addressed store, hash-verified

198
199 /// Returns true if the given drive name is valid.
200 fn is_valid(s: &str) -> bool {
201 !s.is_empty() && !s.chars().any(|c| c == ':' || c == '\\' || c == '/' || c == '.')
202 }
203}
204
205impl fmt::Display for DriveKey {

Callers

nothing calls this directly

Calls 2

charsMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected