Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bitflags/bitflags
/ MyCustomFlagsTrait
Interface
MyCustomFlagsTrait
tests/compile-pass/flags_trait_bound_bitflags.rs:5–7 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
3
use bitflags::{BitFlags, Flags};
4
5
pub trait MyCustomFlagsTrait {
6
fn uses_flags<B: Flags>(flags: B);
7
}
8
9
pub struct MyCustomFlags;
10
Callers
nothing calls this directly
Implementers
1
flags_trait_bound_bitflags.rs
tests/compile-pass/flags_trait_bound_b
Calls
no outgoing calls
Tested by
no test coverage detected