MCPcopy Create free account
hub / github.com/SeaQL/FireDBG.for.Rust / read_string

Method read_string

debugger/src/reader.rs:45–51  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

43 }
44
45 pub fn read_string(&mut self) -> Option<String> {
46 match self.source.next_token() {
47 Some(Token::Str(string)) => Some(string),
48 Some(other) => panic!("Expected String, got {other:?}"),
49 None => None,
50 }
51 }
52
53 pub fn read_int(&mut self) -> Option<u64> {
54 match self.source.next_token() {

Callers 1

read_fromMethod · 0.45

Calls 1

next_tokenMethod · 0.80

Tested by

no test coverage detected