Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SeaQL/FireDBG.for.Rust
/ Length
Class
Length
debugger/testcases/gen_phantom.rs:15–15 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
13
/// `f64` already implements the `Clone` and `Copy` traits.
14
#[derive(Debug, Clone, Copy)]
15
struct Length<Unit>(f64, PhantomData<Unit>);
16
17
/// The `Add` trait defines the behavior of the `+` operator.
18
impl<Unit> Add for Length<Unit> {
Callers
2
add
Method · 0.85
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected