Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/fadeevab/design-patterns-rust
/ new
Method
new
structural/bridge/remotes/basic.rs:10–12 ·
view source on GitHub ↗
(device: D)
Source
from the content-addressed store, hash-verified
8
9
impl<D: Device> BasicRemote<D> {
10
pub fn new(device: D) -> Self {
11
Self { device }
12
}
13
}
14
15
impl<D: Device> HasMutableDevice<D> for BasicRemote<D> {
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected