MCPcopy Create free account
hub / github.com/fadeevab/design-patterns-rust / new

Method new

structural/facade/security_code.rs:6–8  ·  view source on GitHub ↗
(code: u32)

Source from the content-addressed store, hash-verified

4
5impl SecurityCode {
6 pub fn new(code: u32) -> Self {
7 Self { code }
8 }
9
10 pub fn check(&self, code: u32) -> Result<(), String> {
11 if self.code != code {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected