Mercurial > crates > nonstick
comparison src/conv.rs @ 94:db167f96ba46
Replace todo! with unimplemented! in documentation.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Mon, 23 Jun 2025 13:04:27 -0400 |
parents | efc2b56c8928 |
children | f3e260f9ddcb |
comparison
equal
deleted
inserted
replaced
93:efc2b56c8928 | 94:db167f96ba46 |
---|---|
253 /// } | 253 /// } |
254 /// } | 254 /// } |
255 /// | 255 /// |
256 /// fn my_terminal_prompt(messages: &[Message]) { | 256 /// fn my_terminal_prompt(messages: &[Message]) { |
257 /// // ... | 257 /// // ... |
258 /// # todo!() | 258 /// # unimplemented!() |
259 /// } | 259 /// } |
260 /// | 260 /// |
261 /// fn main() { | 261 /// fn main() { |
262 /// some_library::get_auth_data(&mut conversation_func(my_terminal_prompt)); | 262 /// some_library::get_auth_data(&mut conversation_func(my_terminal_prompt)); |
263 /// } | 263 /// } |
307 /// # impl MySimpleConvo { fn new() -> Self { Self{} } } | 307 /// # impl MySimpleConvo { fn new() -> Self { Self{} } } |
308 /// | 308 /// |
309 /// impl SimpleConversation for MySimpleConvo { | 309 /// impl SimpleConversation for MySimpleConvo { |
310 /// // ... | 310 /// // ... |
311 /// # fn prompt(&mut self, request: &str) -> Result<String> { | 311 /// # fn prompt(&mut self, request: &str) -> Result<String> { |
312 /// # todo!() | 312 /// # unimplemented!() |
313 /// # } | 313 /// # } |
314 /// # | 314 /// # |
315 /// # fn masked_prompt(&mut self, request: &str) -> Result<String> { | 315 /// # fn masked_prompt(&mut self, request: &str) -> Result<String> { |
316 /// # todo!() | 316 /// # unimplemented!() |
317 /// # } | 317 /// # } |
318 /// # | 318 /// # |
319 /// # fn error_msg(&mut self, message: &str) { | 319 /// # fn error_msg(&mut self, message: &str) { |
320 /// # todo!() | 320 /// # unimplemented!() |
321 /// # } | 321 /// # } |
322 /// # | 322 /// # |
323 /// # fn info_msg(&mut self, message: &str) { | 323 /// # fn info_msg(&mut self, message: &str) { |
324 /// # todo!() | 324 /// # unimplemented!() |
325 /// # } | 325 /// # } |
326 /// # | 326 /// # |
327 /// # fn radio_prompt(&mut self, request: &str) -> Result<String> { | 327 /// # fn radio_prompt(&mut self, request: &str) -> Result<String> { |
328 /// # todo!() | 328 /// # unimplemented!() |
329 /// # } | 329 /// # } |
330 /// # | 330 /// # |
331 /// # fn binary_prompt(&mut self, (data, data_type): (&[u8], u8)) -> Result<BinaryData> { | 331 /// # fn binary_prompt(&mut self, (data, data_type): (&[u8], u8)) -> Result<BinaryData> { |
332 /// # todo!() | 332 /// # unimplemented!() |
333 /// # } | 333 /// # } |
334 /// } | 334 /// } |
335 /// | 335 /// |
336 /// fn main() { | 336 /// fn main() { |
337 /// let mut simple = MySimpleConvo::new(); | 337 /// let mut simple = MySimpleConvo::new(); |