MCPcopy Index your code
hub / github.com/ProgrammingRust/async-chat / get_next_token

Function get_next_token

src/bin/client.rs:99–110  ·  view source on GitHub ↗

Given a string `input`, return `Some((token, rest))`, where `token` is the first run of non-whitespace characters in `input`, and `rest` is the rest of the string. If the string contains no non-whitespace characters, return `None`.

(mut input: &str)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

parse_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected