MCPcopy Create free account
hub / github.com/algoscienceacademy/RustUI / new

Method new

src/navigation/mod.rs:25–31  ·  view source on GitHub ↗
(name: S)

Source from the content-addressed store, hash-verified

23
24impl Route {
25 pub fn new<S: Into<String>>(name: S) -> Self {
26 Self {
27 name: name.into(),
28 route_type: RouteType::Push,
29 params: HashMap::new(),
30 }
31 }
32}
33
34#[derive(Clone, Hash, Eq, PartialEq)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected