MCPcopy Create free account
hub / github.com/InkSha/rust-tutorial / new

Method new

src/todo/list.rs:9–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8impl TodoItemFilter {
9 pub fn new() -> Self {
10 Self {
11 title: Option::None,
12 content: Option::None,
13 }
14 }
15
16 pub fn set_title<T: Into<String>>(&mut self, title: T) {
17 self.title = Some(title.into());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected