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

facet-rs / facet / 14489934359

16 Apr 2025 09:54AM UTC coverage: 41.467% (-0.05%) from 41.521%
14489934359

push

github

fasterthanlime
fix nostd

0 of 2 new or added lines in 1 file covered. (0.0%)

172 existing lines in 2 files now uncovered.

4427 of 10676 relevant lines covered (41.47%)

55.1 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
use core::alloc::Layout;
3
use typeid::ConstTypeId;
4

5
unsafe impl Facet for std::path::PathBuf {
6
    const SHAPE: &'static Shape = &const {
7
        Shape::builder()
8
            .id(ConstTypeId::of::<Self>())
9
            .layout(Layout::new::<Self>())
10
            .def(Def::Scalar(
11
                ScalarDef::builder()
12
                    .affinity(ScalarAffinity::path().build())
13
                    .build(),
14
            ))
NEW
15
            .vtable(value_vtable!((), |f, _opts| write!(f, "PathBuf")))
×
16
            .build()
17
    };
18
}
19

20
unsafe impl Facet for &std::path::Path {
21
    const SHAPE: &'static Shape = &const {
22
        Shape::builder()
23
            .id(ConstTypeId::of::<Self>())
24
            .layout(Layout::new::<Self>())
25
            .def(Def::Scalar(
26
                ScalarDef::builder()
27
                    .affinity(ScalarAffinity::path().build())
28
                    .build(),
29
            ))
NEW
30
            .vtable(value_vtable!((), |f, _opts| write!(f, "Path")))
×
31
            .build()
32
    };
33
}
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