• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

facet-rs / facet / 14931971708

09 May 2025 03:08PM UTC coverage: 55.308%. First build
14931971708

Pull #527

github

web-flow
Merge 10005e18e into a46b975f2
Pull Request #527: Rework type information (Def) — rebased #462

1077 of 1985 new or added lines in 50 files covered. (54.26%)

6669 of 12058 relevant lines covered (55.31%)

73.99 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/facet-core/src/impls_std/path.rs
1
use crate::*;
2

3
unsafe impl Facet<'_> for std::path::PathBuf {
4
    const VTABLE: &'static ValueVTable =
NEW
5
        &const { value_vtable!((), |f, _opts| write!(f, "PathBuf")) };
×
6

7
    const SHAPE: &'static Shape = &const {
8
        Shape::builder_for_sized::<Self>()
9
            .ty(Type::User(UserType::Opaque))
10
            .def(Def::Scalar(
11
                ScalarDef::builder()
12
                    .affinity(ScalarAffinity::path().build())
13
                    .build(),
14
            ))
15
            .build()
16
    };
17
}
18

19
unsafe impl Facet<'_> for std::path::Path {
NEW
20
    const VTABLE: &'static ValueVTable = &const { value_vtable!((), |f, _opts| write!(f, "Path")) };
×
21

22
    const SHAPE: &'static Shape = &const {
23
        Shape::builder_for_unsized::<Self>()
24
            .ty(Type::User(UserType::Opaque))
25
            .def(Def::Scalar(
26
                ScalarDef::builder()
27
                    .affinity(ScalarAffinity::path().build())
28
                    .build(),
29
            ))
30
            .build()
31
    };
32
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc